[CLOSED] ColumnLayout Height 100%

  1. #1

    [CLOSED] ColumnLayout Height 100%

    Hi team Ext.Net, How Can I do a panel with layout ColumnLayout in its height size 100% on my screen?

    Thank you
    Last edited by Daniil; Oct 22, 2012 at 1:14 PM. Reason: [CLOSED]
  2. #2
    Hi @osef,

    I would use a Viewport.

    Example
    <ext:Viewport runat="server" Layout="FitLayout">
        <Items>
            <ext:Panel runat="server" Layout="ColumnLayout">
                <Items>
                    <%--the columns--%>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    You also can set up ColumnLayout for the Viewport and put the columns directly to its Items.
  3. #3
    Daniil

    The problem with this, is that my columns has the size in height for the content, but I want a size percent of 100% of my web page in de Panels with ColumnLayout.

        <ext:Viewport 
            ID="vpCompras"
            runat="server"
            Layout="ColumnLayout"
            Border="false">
            <Items>
                        <ext:Panel ID="Panel2"
                            runat="server"
                            ColumnWidth="0.2"
                            Title="Width=0.25"
                            Html="This is some content." />
                        <ext:Panel ID="Panel3"
                            runat="server"
                            ColumnWidth="0.7"
                            Title="Width=0.75"
                            Html="This is some content." />
                        <ext:Panel ID="Panel4"
                            runat="server"
                            Title="Width=250px"
                            ColumnWidth="0.1"
                            Html="This is some content." />
            </Items>
        </ext:Viewport>
    This is not good.

    Click image for larger version. 

Name:	ColumnLayout.png 
Views:	102 
Size:	3.6 KB 
ID:	4943
  4. #4
    Then please use HBoxLayout.
    https://examples2.ext.net/#/Layout/HBoxLayout/Basic/

    With the Align="Stretch" option and Flex="1" for all columns.
  5. #5
    I forgot that you can set Flex="1" for the items in your example with ColumnLayout and these items will be stretched up to the whole height.

    Though I would still recommend to use HBoxLayout. Because, we think that ColumnLayout can become deprecated in the future.

Similar Threads

  1. [CLOSED] Div inside a Panel gets 0px height when set to 100% CSS height
    By blueworld in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 24, 2012, 1:08 PM
  2. [CLOSED] Splitter Bar Height Problem with ColumnLayout
    By ISI in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Jun 08, 2011, 7:35 AM
  3. Replies: 1
    Last Post: May 14, 2011, 10:51 AM
  4. [CLOSED] [1.0] MessageBoxConfig textbox height - min height
    By methode in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 07, 2010, 10:12 AM
  5. [CLOSED] ColumnLayout with 100% Height
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2009, 9:14 AM

Tags for this Thread

Posting Permissions