GridLayout in Window does not resize on max/minimizing of the window

I got this strange behaviour from the windows/gridlayout component and i’m not sure where is the issue from .

video of it is here :
https://youtu.be/NkluB2-tEUI

You can see that the grid resizes but not the first time , it resizes afterwards but against time. (contra time ?)
When resizing the browser it works fine.

Any input appreciated.
Code is from here :
http://stackoverflow.com/questions/15891119/use-gridlayout-to-make-a-smart-layout-that-responds-to-the-window-being-resized

Reminds me of
this issue
. Have you tried that window.setResizeLazy(true); workaround?

Thank you for the fast answer.
I tried it and the behaviour doesn’t change.

On IE the resizing works as it should.