Jun 19, 2017, 6:04 PM
[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/
================================================== ==========================
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)
The Question is:
Why the Flex panels do not expand inside the VboxLayout container for the second sample??
https://examples4.ext.net/#/Layout/VBoxLayout/Rows/
<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================================================== ==========================
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)
<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" RendersThe Question is:
Why the Flex panels do not expand inside the VboxLayout container for the second sample??
Last edited by fabricio.murta; Jul 17, 2017 at 5:26 PM.