Feb 17, 2011, 5:01 PM
[CLOSED] TabPanel Layout
If Layout property can't be set on a TabPanel (assume this is because the tabpanel is using CardLayout itself?), what is the best way to set the layout for the tabpanel contents. In my example I'd like the tabpanel container to use "fit". Effect being panel=section1 below would fill the tab.
Tabs.aspx
Tabs.aspx
<ext:TabPanel ID="tabs" runat="server">
<items>
<ext:Panel ID="tab1" runat="server" Title="First Tab" Layout="Fit">
<AutoLoad Url="tab1.aspx" Mode="IFrame" ShowMask="true" PassParentSize="true" ></AutoLoad>
</ext:Panel>
<ext:Panel ID="tab2" runat="server" Title="Second Tab" Layout="Fit">
<AutoLoad Url="tab1.aspx" Mode="IFrame" ShowMask="true" PassParentSize="true" ></AutoLoad>
</ext:Panel>
</items>
</ext:TabPanel>
Tab1.aspx <ext:FormPanel ID="formpanel" runat="server" Layout="Fit">
<items>
<ext:Panel ID="section1" runat="server" Title="Section 1">
</ext:Panel>
</items>
</ext:FormPanel>
Last edited by Daniil; Mar 15, 2011 at 7:31 AM.
Reason: [CLOSED]