2 Attachment(s)
[CLOSED] VBOXLayout Not Behaving as I tought it would
Your sample for setting a "ROWS" layout with VBoxLayout is shown below, It Works Fine.
https://examples4.ext.net/#/Layout/VBoxLayout/Rows/
Code:
<body>
<ext:ResourceManager runat="server" />
<ext:Viewport runat="server" Layout="VBoxLayout">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Panel runat="server" Title="Initial Height = 25%" Flex="1" />
<ext:Panel runat="server" Title="Initial Height = 100px" Height="100" />
<ext:Panel runat="server" Title="Initial Height = 75%" Flex="3" />
</Items>
</ext:Viewport>
</body>
This is how this "Original Sample" Renders
Attachment 24999
================================================== ==========================
Now I took this sample and made a simple change (code shown below)
Moved the VBOXLAYOUT container to a Panel inside the Viewport
(Note: I changed titles to visualize the props set and also added borders)
Code:
<body>
<ext:ResourceManager runat="server" />
<ext:Viewport ID="MainViewPort" runat="server">
<Items>
<ext:Panel ID="VBoxPanel" runat="server" Layout="VBoxLayout">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch"/>
</LayoutConfig>
<Items>
<ext:Panel runat="server" Title="Flex=1" Flex="1" BodyStyle="border:2px dashed blue;" />
<ext:Panel runat="server" Title="Height=100 No Flex" Height="100" BodyStyle="border:2px dotted green;" />
<ext:Panel runat="server" Title="Flex=3" Flex="3" BodyStyle="border:2px dashed purple;" />
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</body>
This is how this "Slightly Changed Sample" Renders
Attachment 25000
The Question is:
Why the Flex panels do not expand inside the VboxLayout container for the second sample??