[CLOSED] ColumnLayout - how do I make it resize if its container is resized?

  1. #1

    [CLOSED] ColumnLayout - how do I make it resize if its container is resized?

    Hey,
    I have a columnLayout and inside that some panels. Its streches at first (page load) but when I resize it doesnt update the size of the columns or their panels... What am I missing?

    <ext:Panel runat="server" Border="false" AutoWidth="true" MonitorResize="true">
        <Items>
            <ext:ColumnLayout ID="ColumnLayout1" runat="server" Split="true" >
                <Columns>
                    <ext:LayoutColumn ColumnWidth="0.15">
                        <ext:Panel ID="Panel1" runat="server" Height="30" Layout="FormLayout" Padding="3">
                            <Items>
                                <ext:Label runat="server" Text="test1" FieldLabel="Test1"></ext:Label>
                            </Items>
                        </ext:Panel>
                    </ext:LayoutColumn>
                        
                    <ext:LayoutColumn ColumnWidth="0.35">
                        <ext:Panel ID="Panel2" runat="server" Height="30" Layout="FormLayout" Padding="3">
                            <Items>
                                <ext:Label ID="Label1" runat="server" Text="test2" FieldLabel="test2"></ext:Label>
                            </Items>
                        </ext:Panel>
    
                    </ext:LayoutColumn>
                        
                    <ext:LayoutColumn ColumnWidth="0.5">
                        <ext:Panel ID="Panel3" runat="server" Width="0.5" Height="30" Layout="FormLayout" Padding="3">
                            <Items>
                                <ext:Label ID="Label2" runat="server" Text="test3" FieldLabel="test3"></ext:Label>
                            </Items>
                        </ext:Panel>
                    </ext:LayoutColumn>
                </Columns>
            </ext:ColumnLayout>
        </Items>
    </ext:Panel>
    Last edited by Daniil; May 06, 2011 at 3:21 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, the Panel with ColumnLayout is not resized when you resize the browser's window.

    For example, if you would wrap that Panel in a Viewport with some layout that manages width, you will see that that Panel's width is updated after resizing.
  3. #3
    Hi,

    Please remove AutoWidth from the panel (AutoWidth cannot be used with ColumnLayout if items has percentage width)
  4. #4
    Hi again,

    We have made some further investigation and discovered that, unfortunately, ColumnLayout doesn't support resizing when Split="true".

    When one thing I can suggest is still Viewport with FitLayout. But I'm not sure that this sill work fine in all cases.

Similar Threads

  1. [CLOSED] How to make scalable ColumnLayout from code behind?
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 17, 2012, 4:36 PM
  2. Container AutoHeight problem on ColumnLayout
    By alexot in forum 1.x Help
    Replies: 4
    Last Post: Jan 02, 2012, 12:23 PM
  3. How to make a correct resize of a columnlayout?
    By Fabrizio in forum 1.x Help
    Replies: 2
    Last Post: Nov 29, 2011, 1:39 PM
  4. [FIXED] [V0.8] Icons getting resized
    By dbassett74 in forum Bugs
    Replies: 1
    Last Post: Apr 22, 2009, 1:19 PM
  5. Replies: 3
    Last Post: Feb 22, 2009, 2:58 PM

Tags for this Thread

Posting Permissions