[CLOSED] Resize window based on dynamically loaded page.

  1. #1

    [CLOSED] Resize window based on dynamically loaded page.

    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
    Last edited by Daniil; Sep 03, 2013 at 5:05 AM. Reason: [CLOSED]
  2. #2
    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...ll=1#post74694

Similar Threads

  1. [CLOSED] Recenter modal window on page resize
    By michaeld in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 08, 2013, 1:36 AM
  2. Replies: 7
    Last Post: Jul 11, 2013, 12:12 PM
  3. Replies: 0
    Last Post: Aug 31, 2012, 9:19 AM
  4. Replies: 2
    Last Post: Feb 17, 2012, 10:51 AM
  5. [CLOSED] Window inside an aspx page that is loaded in a TAB
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 06, 2010, 8:34 AM

Posting Permissions