May 10, 2012, 6:37 PM
[CLOSED] Defaults cannot be overridden
Sorry if the title isn't most accurate!
Basically I am trying the following border layout with defaults for split and collapsible on most regions. Then on the center region, I explicitly set those values to false:
Thanks!
Basically I am trying the following border layout with defaults for split and collapsible on most regions. Then on the center region, I explicitly set those values to false:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head>
<title>Border Layout Example</title>
</head>
<body>
<ext:ResourceManager runat="server" Theme="Gray" />
<ext:Window runat="server" Layout="Border" Height="200" Width="400" Border="False">
<Defaults>
<ext:Parameter Name="split" Value="true" />
<ext:Parameter Name="collapsible" Value="true" />
</Defaults>
<Items>
<ext:Panel region="West" runat="server" Title="West" Width="100" Weight="10" />
<ext:Panel region="Center" Split="False" Collapsible="False" Title="Center" runat="server" />
<ext:Panel region="South" runat="server" Title="South" Height="100" />
</Items>
</ext:Window>
</body>
</html>
Notice the Center region will have a collapsible tool when it should not. Looking at the generated JavaScript the center region overrides are not being created:Ext.create("Ext.window.Window", {
border: false,
height: 200,
hidden: false,
renderTo: Ext.getBody(),
width: 400,
defaults: {
"split": true,
"collapsible": true
},
items: [{
width: 100,
region: "west",
weight: 10,
title: "West"
}, {
region: "center",
title: "Center"
}, {
height: 100,
region: "south",
title: "South"
}],
layout: "border"
});
If I modify the JavaScript directly to add the split: true and collapsible: true to the center region and run it in firebug then it works as expected. If this is possible to fix, that would be great.Thanks!
Last edited by Daniil; May 10, 2012 at 7:35 PM.
Reason: [CLOSED]