Fixed #4

...and allowed window resizing to test that fix.