I have problems with my layout, when I re-size window manually and restore it to normal everything is in the perfect place.
Is it possible to trick the browser and
You can resize the window like this...
window.resizeTo(width, height);
And if you need to trigger the event handler, you can do that like this...
window.onresize();