Maximized Window in Center of BorderLayout not resizing?

  1. #1

    Maximized Window in Center of BorderLayout not resizing?

    Hi,

    me again with what I thought would be easy: I have a regular BorderLayout width all 5 regions, all of which are resizable. In the center region, I want to "host" several different windows. But I already ran into a problem with a very first test Window. I would have expected that the window (if maximized) would resize with the center panel, but it doesn't.

    Here's my (really simple) setup:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testWindow.aspx.cs" Inherits="TralosyV2.Web.TestWindowPage" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" SourceFormatting="True" />
        <ext:Viewport runat="server" ID="Viewport1">
            <Items>
                <ext:BorderLayout ID="BorderLayout2" runat="server">
                    <North Collapsible="true" Split="true" CollapseMode="Mini">
                        <ext:Panel ID="Panel4711" runat="server" Title="North" Height="100">
                        </ext:Panel>
                    </North>
                    <West Collapsible="true" Split="true" CollapseMode="Mini">
                        <ext:Panel ID="Panel1" runat="server" Title="West" Width="175">
                        </ext:Panel>
                    </West>
                    <Center>
                        <ext:Panel ID="Panel2" runat="server" Title="Center">
                            <Items>
                                <ext:Window runat="server" Title="Some window" Maximizable="true" Minimizable="true" MonitorResize="true">
                                </ext:Window>
                            </Items>
                        </ext:Panel>
                    </Center>
                    <East Collapsible="true" Split="true" CollapseMode="Mini">
                        <ext:Panel ID="Panel3" runat="server" Title="East" Width="175" Collapsed="False">
                        </ext:Panel>
                    </East>
                    <South Collapsible="true" Split="true">
                        <ext:Panel ID="Panel4" runat="server" Height="150" Title="South">
                        </ext:Panel>
                    </South>
                </ext:BorderLayout>
            </Items>
        </ext:Viewport>
        </form>
    </body>
    </html>
    Am I missing something obvious? Thanks in advance for any help provided!
  2. #2
    Hi,

    Window cannot be placed to the Items collection. It should be outiside any control (should be independence)
    Use panel and set Layout="Fit" for Center panel
  3. #3
    Hi Vladimir,

    thanks for your reply! I'm afraid I'm not sure if I understood it correctly - how to I do constrain the window to stay inside the center panel when placed outside the control structure?

    Jens

Similar Threads

  1. Replies: 2
    Last Post: Jun 23, 2012, 2:17 PM
  2. [CLOSED] Problem: Closing Maximized Window will loose parent window scrollbar
    By tlfdesarrollo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 19, 2012, 8:51 PM
  3. [CLOSED] Maximized window doesn't remain maximized
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Feb 07, 2012, 3:32 PM
  4. [CLOSED] BorderLayout and resizing
    By Riset in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 26, 2009, 6:37 AM
  5. Center ext:window on window resizing
    By matteo in forum Examples and Extras
    Replies: 1
    Last Post: Oct 02, 2008, 11:35 PM

Posting Permissions