Feb 18, 2013, 9:23 PM
MVC helper does not apply LayoutConfig for stretching
Hi,
I tried to create a Panel or Window with HBox layout with alignment type Stretch, but child items are not strecthed to the container window height. MVC helper does not add required align:stretch config property to generated javascript code:
I tried to create a Panel or Window with HBox layout with alignment type Stretch, but child items are not strecthed to the container window height. MVC helper does not add required align:stretch config property to generated javascript code:
@(Html.X().Window()
.Title("MVC HBox Layout")
.Height(300)
.Width(400)
.Layout(LayoutType.HBox)
.LayoutConfig(lc=> new HBoxLayoutConfig { Align = HBoxAlign.Stretch })
.Items(b =>
{
b.Add(Html.X().Panel().Html("Panel1").Flex(1));
b.Add(Html.X().Panel().Html("Panel2").Flex(2));
}
)
)
Same bug exists for VBox layout:@(Html.X().Window()
.Title("MVC VBox Layout")
.Height(300)
.Width(400)
.Layout(LayoutType.VBox)
.LayoutConfig(lc=> new VBoxLayoutConfig { Align = VBoxAlign.Stretch })
.Items(b =>
{
b.Add(Html.X().Panel().Html("Panel1").Flex(1));
b.Add(Html.X().Panel().Html("Panel2").Flex(2));
}
)
)
I tested with Ext.NET.MVC v2.1.1
Last edited by Daniil; Feb 20, 2013 at 3:40 AM.