Vertical Auto Height

  1. #1

    Vertical Auto Height

    Hello

    Browsing forums and still not sure if this is possible
    I have masterpage, created purelly in HTML, and inside content page I would like to have
    FormPanel (with two comboboxes) and GridPanel

    Is it possible to setup GridPanel so that it stretch all the available (vertical) space of the page?

    I dont have any ViewPort here (in fact I do not understand what is purpose of this component)

    setting AutoHeight="true" in GridPanel do not helped ( which is correct, as - GridPanel is sitting inside HTML so it does not know how much space it can take)

    Thanks
    Zdenek
  2. #2
    Hi,

    Please read about a Viewport:
    http://docs.sencha.com/ext-js/3-4/#!/api/Ext.Viewport

    I can suggest:

    1. Set up a Viewport as a top level control in a master page.

    2. Use BorderLayout and ContentPlaceHolder for each region.
    https://examples1.ext.net/#/ViewPort...ilt_in_Markup/
  3. #3

    Hello

    Ok, thanks for pointing in some direction

    So am I right that :
    - There is no other component then ViewPort that would spread accros available browser height
    - ViewPort is always rendered in the body tag, it's not possible to render into desired div
    - You idea with masterpage is like follows
    - if the page contains some html header and footer, I can still render the viewport, and using Border layout set height of north and south region to width if html header/footer. so that user impression is like the view port is between header and footer?

    thanks
  4. #4
    Generally, you are right.

    Though I should clarify the following thing:

    Quote Originally Posted by Zdenek View Post
    using Border layout set height of north and south region to width if html header/footer.
    Do you mean setting up Width for a south region?
  5. #5
    Quote Originally Posted by Daniil View Post
    Generally, you are right.

    Though I should clarify the following thing:



    Do you mean setting up Width for a south region?



    Sorry I meant "using Border layout set height of north and south region to height oif html header/footer."

    Thanks for claryfiing, I think this thread can be mark as closed
  6. #6
    Yes, that is correct.

Similar Threads

  1. Auto height on CenterLayout example page
    By Alexx in forum 1.x Help
    Replies: 7
    Last Post: Apr 29, 2013, 3:25 PM
  2. Replies: 4
    Last Post: Sep 01, 2011, 6:09 PM
  3. problem with ext panel auto height
    By venu.sn2009 in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2011, 8:12 AM
  4. How to set auto height for a panel?
    By ganesh.tony in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2011, 5:26 AM
  5. [CLOSED] Auto Height
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 19, 2008, 6:43 AM

Posting Permissions