Fix so that resize does fit to window
Merge pull request #632 from debrief/issue630

Fix so that resize does fit to window