[CLOSED] layout problem

  1. #1

    [CLOSED] layout problem

    I want to do a layout,
    there is a panel , in it have 4 button,
    and the first is on the left, and the last 3 buttons on the right of the button, and make the 4 buttons Horization Align and vertical alignment
    any suggestion?
    such as https://examples2.ext.net/#/Layout/HBoxLayout/Basic/
    click the "spaced" button,
    but I do not know how to it
    Last edited by Daniil; Sep 25, 2013 at 5:48 AM. Reason: [CLOSED]
  2. #2
    Hi @hdsoso,

    You find exactly the example you need. Though, I do not understand what else you need to modify. Please provide a mockup.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @hdsoso,

    You find exactly the example you need. Though, I do not understand what else you need to modify. Please provide a mockup.
    what is the "Spaced" ? how to use it?
  4. #4
    You can see it in the Example's sources.
    <ext:Panel 
        ID="pnlSpaced" 
        runat="server"
        Layout="HBoxLayout"
        BodyPadding="5">
        <Defaults>
            <ext:Parameter Name="margins" Value="0 5 0 0" Mode="Value" />
        </Defaults>
        <LayoutConfig>
            <ext:HBoxLayoutConfig  Align="Top" />
        </LayoutConfig>
        <Items>
            <ext:Button runat="server" Text="Button 1" />
            <ext:Panel runat="server" BaseCls="x-plain" Flex="1" />
            <ext:Button runat="server" Text="Button 2" />
            <ext:Button runat="server" Text="Button 3" />
            <ext:Button runat="server" Text="Button 4" Margins="0" />
        </Items>
    </ext:Panel>
    Though, I suggest to use:
    <ext:Component runat="server" Flex="1" />
    instead of
    <ext:Panel runat="server" BaseCls="x-plain" Flex="1" />

Similar Threads

  1. [CLOSED] Layout Problem
    By gs_user in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 29, 2013, 4:58 AM
  2. [CLOSED] layout problem?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 16, 2013, 10:36 AM
  3. Layout Problem
    By bilgibilisim in forum 2.x Help
    Replies: 0
    Last Post: Oct 23, 2012, 10:36 AM
  4. Window Layout Problem
    By fatihunal in forum 1.x Help
    Replies: 2
    Last Post: Oct 01, 2012, 3:06 PM
  5. Portlet ,Fit Layout problem
    By kiran malgi in forum 1.x Help
    Replies: 0
    Last Post: Jun 01, 2010, 3:05 AM

Posting Permissions