javascript - Forcing windows resize to fire -


I have a problem with my layout, when I manually change the window again and restore it normally I am in the right place.

Is it possible to trick the browser and do something with Javascript, which in fact the browser thinks that the page has been resized so that my layout looks like it should?

Update:

Can I re-size and restore the window so that the user can only notice?

It is possible (which means that it can also be done without a framework), here An example is:

  window. AddEvent ('domready', function () {window.addEvent ('resize', function) {warning ('F');}); (Function () {window.fireEvent ('resize');}) delay (3000);});  

After loading the DOM-structure, 3-second resize-event will be removed for window-object.

Edit;

I do not have any clue how motuum resolves my fire avenues for resizing event. I tried Google, but got Nada. You can of course resize the window manually, but this is actually a hack:

FireOnResizeEvent () {var width, height; If (navigator.appName.indexOf ("Microsoft")! = -1) {width = document.body.offsetWidth; Height = document. Body.offsetHeight; } And {width = window.outerWidth; Height = window.waterHight; } Window.resizeTo (width - 1, height); Window.resizeTo (width + 1, height); } Window.onresize = function () {alert ("resized!"); }

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -