Fix the windows resize

Especially the missing var
Merge pull request #885 from camptocamp/fix-resize

Fix the windows resize