PDA

View Full Version : Is it possible to have a toolbar update it's layout when parent div changes



jej2003
17 Oct 2012, 5:43 PM
I have a div created outside of ExtJS which I am rendering a toolbar too. The divs width is relative to the browser window, I am wondering if there is a way to have the toolbar automatically update it's layout when the parent div changes width?

mitchellsimoens
19 Oct 2012, 7:48 AM
You can add a listener to the div for the resize event to know when it has been resized.

jej2003
19 Oct 2012, 8:44 AM
I am assuming you're talking about the Ext.dom.Element resize event, is that correct?

mitchellsimoens
19 Oct 2012, 8:50 AM
yes

jej2003
19 Oct 2012, 8:51 AM
thanks I'll give that a whirl and see how it goes.