Stage resize fix

Hi,

width and height were swapped resulting in an incorrect resize of the window.