Ensure the frame is the right size.