One typo error in LayoutSettings.java

public int getMainWindowWidth() {

if (mainWindowWidth < 100) {
mainWindowWidth = 100;
} else if (**mainWindowHeight** > Toolkit.getDefaultToolkit()
.getScreenSize().width) {
mainWindowWidth = Toolkit.getDefaultToolkit().getScreenSize().width - 50;
}
return mainWindowWidth;
}

the marked "bold" should be  **mainWindowWidth**

Thanks for reporting. SPARK-1423

Can you provide a testcase that shows the effect of this typo and a description how it should be?

when user resize the mainframe width, make it larger than screen width, then restart, it still larger than the screen width.