View Full Version : Documnet afterRender

9 Dec 2009, 2:58 AM
I'm looking for an event when every control in my document (e.g a lot of windows) are rendered. I got heade r div, content div and footer div. My goal is calculate the lowest Y coordinate and expand content panel accordingly using setHeight method. So the footer div will below all windows. The problem is - i can't get windows heigth before they render. I don't want to redefine afterrender event for every window and use global variable.

Any help will be highly apperciated

9 Dec 2009, 3:49 AM
Why not use Ext.Viewport ?

9 Dec 2009, 4:03 AM
Well we are using Ext.ViewPort, but windows render after ViewPort render. So i need some kind of global event.

For e.g document.on('render',function(){


9 Dec 2009, 4:10 AM
I'm sorry, it's totally unclear to me what it is you are trying to achieve..

you have a bunch of windows that need to know what the max size of the viewports content panel can become ? It sounds like you are heading in a wrong direction alltogether..