When the window displaying a single image is resized, the aspect ratio may be changed so that the image appears squashed or stretched in one direction. If you have resized the window to the correct width that you want then this operation will adjust the height of the window to restore the correct aspect ratio.