Adapt stage maxHeight and minHeight to screen
Adapt stage maxHeight and minHeight to screen

Whenever the pView is dragged around, such that its x-coordinate changes, its maxHeight and minHeight properties will be recalculated so as to fit the new screen.

Also refactored the original main stage dimensions calculation code into setupStageDimensions, which is called in initUI. The original version of the dimensions calculation is called in showMainWindow, which is much later than initUI.

gaieepo/HubTurbo,gaieepo/HubTurbo