PDA

View Full Version : What event is fired on window resize?



ngardner
24 Mar 2011, 11:00 AM
I am needing to re-draw everything after load (image has % height, and always messes up layout on first load, refreshing fixes the problem - as well as resizing the browser window). So, I am wanting to manually call the "browser resize" event, or force sencha to redraw everything. Can someone point me in the right direction? Thanks.

jep
24 May 2011, 2:04 PM
I don't know the BEST way to do it, but I do know that putting this in your onReady function will work to hook into the browser resize:



Ext.EventManager.onWindowResize(function () {
console.log('window resize');
});


I pass it along without any other advice because I only read about it yesterday and I'm still trying to figure out how to solve some browser resizing problems. But hopefully this will help you.

bpulliese
7 Jun 2012, 6:38 PM
Ever get a solution to this? I to would like to fire the redraw event grammatically.