Center the frame correctly in the sample and demonstrate the right way to do it in the documentation.