PDA

View Full Version : [CLOSED] Expand a region with components not rendered



RCN
Jun 05, 2012, 7:43 PM
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>

Daniil
Jun 05, 2012, 9:37 PM
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>

RCN
Jun 06, 2012, 3:42 AM
Thank you Daniil. please keep me posted.

Daniil
Jun 06, 2012, 9:38 AM
I have reported it to Sencha and will monitor.
http://www.sencha.com/forum/showthread.php?214963

Daniil
Jun 07, 2012, 6:40 AM
ExtJS team has opened a bug.

Daniil
Aug 27, 2012, 7:44 AM
The bug has been fixed in the 2.1 branch. Thanks again for the report!

RCN
Oct 03, 2012, 3:03 PM
Thank you Daniil, please mark it as closed

Daniil
Oct 03, 2012, 8:50 PM
Hi Raphael,

Thank you for confirming.