PDA

View Full Version : Basic html/javascript + div/element height/width question...



vishpool
5 Jun 2007, 6:12 AM
I have a div that I wrap with a ContentPanel, and I am using a 3rd party module that uses a child div inside it to wrap a UI (e.g., YMap). At the point that I initiated this module, the child div doesn't quite have height/width set yet. How can force it to, say, render before I actually initate the module?

Basically, how can i force a layout/render of a ContentPanel (to set its div sizes) manually?

Thanks!

tryanDLS
5 Jun 2007, 7:04 AM
You can call resizeTo (http://extjs.com/deploy/ext/docs/output/Ext.LayoutRegion.html#resizeTo) on the containing region.