[CLOSED] Nested border layout

  1. #1

    [CLOSED] Nested border layout

    The layout of south panel is not working.What is wrong with the mark up below ???
    <ext:Panel runat="server" ID="pnlMain" Width="600" Height="400" Layout="BorderLayout">
            <Items>
                <ext:Panel runat="server" ID="pnlCenter" Region="Center" Flex="1" Title="Center">
                </ext:Panel>
                <ext:Panel runat="server" ID="pnlWest" Split="true" Region="West" Flex="1" Title="West">
                </ext:Panel>
                <ext:Panel runat="server"  Region ="South"  MinHeight="200" Layout="BorderLayout">
                    <Items>
                        <ext:Panel runat="server" ID="Panel1" Region="Center" Flex="1" Title="Center">
                        </ext:Panel>
                        <ext:Panel runat="server" ID="Panel2" Split="true" Region="West" Flex="1" Title="West">
                        </ext:Panel>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Panel>
    Last edited by Daniil; Feb 19, 2013 at 3:39 AM. Reason: [CLOSED]
  2. #2
    Hi @odyssey,

    I think it needs to replace MinHeight="200" with Height="200".

    A south region requires Height or Flex.
    http://docs.sencha.com/ext-js/4-1/#!...ntainer.Border

    Please avoid border layout nesting if possible. Please search for "Reduce border layout nesting" here:
    http://www.sencha.com/blog/optimizin...d-applications
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @odyssey,

    I think it needs to replace MinHeight="200" with Height="200".

    A south region requires Height or Flex.
    http://docs.sencha.com/ext-js/4-1/#!...ntainer.Border

    Please avoid border layout nesting if possible. Please search for "Reduce border layout nesting" here:
    http://www.sencha.com/blog/optimizin...d-applications
    Thanks a lot Daniil. Since I need two resizable sections in South region there is only one reasonable option for me is "BorderLayout "
    and for improving performance replaced the Panel to Container
  4. #4
    Two resizable sections can be implemented using hbox layout and splitter
    https://examples2.ext.net/#/Layout/HBoxLayout/Split/

Similar Threads

  1. [CLOSED] Nested Border Layouts
    By mj.daly in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 30, 2012, 3:52 PM
  2. [CLOSED] Nested Layout issue
    By blueworld in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 02, 2012, 2:31 PM
  3. [CLOSED] Nested border layouts causing layout disapear
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 27, 2012, 7:31 AM
  4. [CLOSED] Need help with Border layout
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 29, 2009, 9:05 AM
  5. Border Layout
    By oskarni in forum 1.x Help
    Replies: 7
    Last Post: Apr 10, 2008, 9:19 PM

Posting Permissions