PDA

View Full Version : [CLOSED] Resize window based on dynamically loaded page.



rthiney
Aug 29, 2013, 4:34 AM
Hi
Here is my scenario.
I have a window to which I dynamically load pages.
I want to use the largest Panel Heigh/Width from the loaded page, and adjust the window dimensions based on it.
I figure I can do a parent.window.setSize() after the page is loaded, but what event should I key off to get the final height/width if that panel?

I tried the "Render", "After Render" of the panels' listener events, but the height is really small...its giving me the height before the content is actually rendered...

TY

Daniil
Aug 29, 2013, 5:59 AM
Hi @rthiney,

Unfortunately, there is no event like "everything is rendered and sized". However, a small delay for an AfterRender listener should be good enough.
http://forums.ext.net/showthread.php?17361&p=74694&viewfull=1#post74694