Handle resize of window.
Merge pull request #1 from lilasquared/master

Handle resize of window.