Window Panel auto width

  1. #1

    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

    <ext:Window ID="Window_TopMenuItem" runat="server" Icon="Application" Title="Top Menu Item"
                    Center&#111;nload="true" Modal="True" Show&#111;nload="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" &#111;nclick="Button_SelectParentMenuItem_Select_Click" />
                                    &amp;nbsp;<asp:Button SkinID="skinButton" ID="Button_SelectParentMenuItem_Cancel" runat="server" Text="Cancel" Width="75px" />
                                </td>
                            </tr>
                        </table>
                    </Content>
                </ext:Window>

  2. #2

    RE: Window Panel auto width

    I have exactly the same problem in IE, but it works in Firefox. The problem is only with AutoWidth property. AutoHeight works in both browsers. Any solution?
  3. #3

    RE: Window Panel auto width

    I guess this is the answer: http://extjs.com/forum/showthread.php?t=30009 (#9)

Similar Threads

  1. [CLOSED] Grid Panel : Column width (Auto width)
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 24, 2011, 8:31 PM
  2. [CLOSED] Panel width not updating on window resize
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 21, 2011, 2:06 PM
  3. [CLOSED] Auto change popop window height and width
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2011, 8:29 AM
  4. [CLOSED] Auto Width
    By majunior in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 01, 2011, 3:30 PM

Posting Permissions