Apr 23, 2014, 3:44 PM
[CLOSED] Window layout confusion
I have a mental block on a Window Layout issue.
I have a window with a Center and South region. I would like the window to resize based on the Center region controls. I have tried various attributes and am going around in circles. I know the sample code below is not correct, but it is a starting point for discussion.
I have a window with a Center and South region. I would like the window to resize based on the Center region controls. I have tried various attributes and am going around in circles. I know the sample code below is not correct, but it is a starting point for discussion.
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Window Fit & Border Layout</title>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:Window ID="Window04a" runat="server" Title="Window Border & Fit Layout" Layout="BorderLayout"
Width="500" Height="500" CloseAction="Destroy">
<Items>
<ext:FormPanel ID="FormPanel" runat="server" ClientIDMode="Static" BodyPadding="8"
Region="Center" Layout="FitLayout" MinHeight="100">
<Items>
<ext:Label runat="server" Text="Select a category the press the 'Initiate Request' button." />
<ext:Container runat="server" Html="<hr/>" MarginSpec="0 0 5 0" />
</Items>
</ext:FormPanel>
<ext:Panel runat="server" Text="Errors" Region="South" Collapsible="true" Collapsed="true" Height="100" />
</Items>
<Buttons>
<ext:Button ID="CloseBtn" runat="server" Text="Close" Icon="BulletGo" OnClientClick="#{Window04a}.close();" />
</Buttons>
</ext:Window>
</body>
</html>
Last edited by Daniil; May 06, 2014 at 6:58 AM.
Reason: [CLOSED]