Fix geometry issue when orientations change

Refreshing [F5] the window when orientation changes doubling the size of the window