[CLOSED] [1.0] Panel layout adding horizontal space to height

  1. #1

    [CLOSED] [1.0] Panel layout adding horizontal space to height



    This worked in v.8, but seems to be adding some "extra" space to a panel when a <Content> or <Items> collection is not specified. This did not happen in v.8.

    .aspx:
    <ext:Viewport runat="server" Layout="Row">
        <Items>
            <ext:Panel ID="Header" runat="server" Border="false" Height="26">
                <TopBar>
                    <ext:Toolbar ID="tbHeader" runat="server">
                        <Items>
                             ... toolbar items  here ...
                        </Items>
                    </ext:Toolbar>
                </TopBar>
            </ext:Panel>
            <ext:Panel runat="server" border="false" RowHeight="1">
                <TopBar>
                    <ext:Toolbar" ID="tlbMain" runat="server" HideParent="true">
                        <Items>
                            ... Toolbar Items here....
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Content>
                    <ext:Panel runat="server" LayoutFit="Fit">
                    </ext:Panel>
                 </Content>
             </ext:Panel>
             <ext:Panel id="pStatus" runat="server" Height="28">
                <TopBar>
                    <ext:StatusBar runat="server">
                        <Items>
                            ... Statusbar items here ...
                        </Items>
                    </ext:StatusBar>
                 </TopBar>
              </ext:Panel>
            </Items>
        </ext:Viewport>
  2. #2

    RE: [CLOSED] [1.0] Panel layout adding horizontal space to height

    Hi,

    You can remove that space by setting for Panel
    BodyCssClass="x-hidden"

    Also if you try to emulate multiline toolbars then see the following sample in SVN (in Examples Explorer)
    /Toolbar/Menu/Layout_Toolbar/
  3. #3

    RE: [CLOSED] [1.0] Panel layout adding horizontal space to height

    Alright, I will do this.

    However, why couldn't this do it automatically if there is no Content tag or Items collection present? Just a thought...
  4. #4

    RE: [CLOSED] [1.0] Panel layout adding horizontal space to height

    Hi,

    I feel we should not hide the body automatically because in many case it is required to render panel with empty body to fill it later

Similar Threads

  1. [CLOSED] Auto GridPanel Height To Fill Available Space
    By dmoore in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 08, 2012, 7:03 AM
  2. Replies: 2
    Last Post: Feb 21, 2012, 8:05 AM
  3. [CLOSED] Horizontal Layout inside FormLayout panel
    By jwf in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Sep 16, 2011, 3:23 PM
  4. [CLOSED] Can't set the layout to horizontal center
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 24, 2011, 1:46 PM
  5. Replies: 2
    Last Post: Feb 17, 2011, 2:16 AM

Posting Permissions