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

Aug 29, 2013, 3:34 AM
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...


Aug 29, 2013, 4: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.