Oct 06, 2008, 8:02 PM
Window Panel auto width
Has anyone else run in to any problems using the Window, with the panel's AutoWidth and AutoHeight set to true? The markup I have used is shown below.
The problem I have, is that the window appears across the width of the screen, but it is just grey. The content doesn't seem to be there.
What is the correct approach for having the window size itself automatically to the width and height of the content within it?
Thanks, Tas
The problem I have, is that the window appears across the width of the screen, but it is just grey. The content doesn't seem to be there.
What is the correct approach for having the window size itself automatically to the width and height of the content within it?
Thanks, Tas
<ext:Window ID="Window_TopMenuItem" runat="server" Icon="Application" Title="Top Menu Item"
Centeronload="true" Modal="True" Showonload="false" BodyStyle="padding: 10px;" AutoHeight="True" AutoWidth="True">
<Content>
<table cellpadding="1" cellspacing="1" border="0">
<tr>
<td><h3>Top Menu Item</h3></td>
</tr>
<tr>
<td style="width:100%;">
<div class="ScrollableBox" style="height:245px; width:496px;">
<ignav:UltraWebTree id="UltraWebTree_ParentMenuItems" runat="server" Width="96%" SkinID="skinUltraWebTree">
<Nodes>
<ignav:Node Text="Top Menu Item" Expanded="true" CssClass="MenuItemStyle"></ignav:Node>
</Nodes>
</ignav:UltraWebTree>
</td>
</tr>
<tr>
<td align="right">
<asp:Button SkinID="skinButton" ID="Button_SelectParentMenuItem_Select" runat="server" Text="Select" Width="75px" onclick="Button_SelectParentMenuItem_Select_Click" />
&nbsp;<asp:Button SkinID="skinButton" ID="Button_SelectParentMenuItem_Cancel" runat="server" Text="Cancel" Width="75px" />
</td>
</tr>
</table>
</Content>
</ext:Window>