[CLOSED] Automatic window height based on content

  1. #1

    [CLOSED] Automatic window height based on content

    I have a window that has a bunch of controls that get hidden or shown depending on different variables. All this happens before the window is actually shown with .Show()

    Is there a way to make the window's height stretch or shrink depending on its contents (what's visible or not)?
    Last edited by Daniil; Jul 11, 2011 at 9:18 AM. Reason: [CLOSED]
  2. #2

    You can try AutoHeight property but we cannot guarantee that it will work correctly in all cases
    Auto width is impossible

    Here is note from ExtJS docs about AutoHeight
    AutoHeight true to use height:'auto', false to use fixed height (defaults to false). Note: Setting autoHeight: true means that the browser will manage the panel's height based on its contents, and that Ext will not manage it at all. If the panel is within a layout that manages dimensions (fit, border, etc.) then setting autoHeight: true can cause issues with scrolling and will not generally work as expected since the panel will take on the height of its contents rather than the height required by the Ext layout.

Similar Threads

  1. Replies: 2
    Last Post: Feb 17, 2012, 10:51 AM
  2. [CLOSED] How to set Portlet height based on auto load url page
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 22, 2011, 4:07 PM
  3. Replies: 1
    Last Post: Jun 02, 2011, 9:19 PM
  4. Replies: 12
    Last Post: May 05, 2011, 6:21 AM
  5. Automatic grid size, in width and height.
    By Galo Q in forum 1.x Help
    Replies: 1
    Last Post: May 12, 2010, 12:12 PM

Posting Permissions