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 do something with JavaScript that would actually make the browser think that the page has been re-sized so that my layout looks as it should?
UPDATE:
Can I re-size and restore window so that user barely notices?
The resize event fires when the document view (window) has been resized. This event is not cancelable and does not bubble. In some earlier browsers it was possible to register resize event handlers on any HTML element.
Since then a better solution has been posted in https://stackoverflow.com/a/18693617/2306587:
window.dispatchEvent(new Event('resize'));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With