[CLOSED] Expand a region with components not rendered

  1. #1

    [CLOSED] Expand a region with components not rendered

    Hi folks, i have a ViewPort with Center and South regions. If the south region is collapsed (initial state) and then i expand it, it does not expand as expected, it just goes crazy. If i set Collapsed to false the problem does not happen.

    Any Idea to overcome this problem?

    <ext:Viewport ID="vwp" runat="server" Title="Complex Layout" Layout="BorderLayout">
        <Items>
            <ext:Panel ID="Tab1" runat="server" Title="CENTER" Region="Center" Closable="true"
                Border="false" BodyPadding="6" Height="500" Html="CENTER CONTENT" />
            <ext:GridPanel ID="GridPanel1" runat="server" Title="SOUTH" Region="South" Height="350"
                Collapsed="true" Collapsible="true">
                <Store>
                    <ext:Store ID="Store1" runat="server">
                        <Model>
                            <ext:Model ID="Model1" runat="server">
                                <Fields>
                                    <ext:ModelField Name="company" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel>
                    <Columns>
                        <ext:Column ID="Column1" runat="server" Text="Company" DataIndex="company" Flex="1" />
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
    Last edited by Daniil; Aug 27, 2012 at 6:44 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Confirm. It looks a bug.

    For now please wrap the GridPanel in a Panel to fix that.

    Example
    <ext:Panel 
        runat="server" 
        Title="SOUTH" 
        Region="South" 
        Height="350"
        Collapsed="true" 
        Collapsible="true" 
        Layout="FitLayout">
        <Items>
            <ext:GridPanel ID="GridPanel1" runat="server">
                
            </ext:GridPanel>
        </Items>
    </ext:Panel>
  3. #3
    Thank you Daniil. please keep me posted.
  4. #4
    I have reported it to Sencha and will monitor.
    http://www.sencha.com/forum/showthread.php?214963
  5. #5
    ExtJS team has opened a bug.
  6. #6
    The bug has been fixed in the 2.1 branch. Thanks again for the report!
  7. #7
    Thank you Daniil, please mark it as closed
  8. #8
    Hi Raphael,

    Thank you for confirming.

Similar Threads

  1. Replies: 1
    Last Post: Mar 13, 2012, 8:37 AM
  2. Replies: 13
    Last Post: Jul 14, 2011, 1:45 PM
  3. Region Collapse Question
    By rnachman in forum 1.x Help
    Replies: 0
    Last Post: Jan 28, 2011, 4:50 PM
  4. Fold region ViewPort in runtime
    By marvio.bezerra in forum 1.x Help
    Replies: 0
    Last Post: Mar 20, 2010, 2:53 AM
  5. ExtJs Extender in west region
    By maxdiable in forum 1.x Help
    Replies: 4
    Last Post: Jun 10, 2009, 4:00 AM

Posting Permissions