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 height that you want then this operation will adjust the width of the window to restore the correct aspect ratio.