Fixes the non-rescaling gui.

The gui didn't resize because the central widget was in a "broken layout" state.
To fix this you need to say the layout of the parent window.