[CLOSED] Wrong Ext.Window alignment when renderTo is set to a Panel inside a Viewport

  1. #1

    [CLOSED] Wrong Ext.Window alignment when renderTo is set to a Panel inside a Viewport

    I think there is a bug in the alignment of Ext.Window when it's rendered in a Panel which in turn belongs to a Viewport.

    <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <script type="text/javascript">
            var onClick = function () {
                win = new Ext.Window({
                    renderTo: Ext.net.getEl(App._pnlCenter),
                    height: 100,
                    width: 200,
                    constrain: true,
                    maximizable: true,
                    modal: true,
                }).show();
            };
        </script>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
    
        <ext:Viewport Layout="BorderLayout" runat="server">
            <Items>
                <ext:Panel runat="server" ID="_pnlNorth" Region="North" Height="100">
                </ext:Panel>
                <ext:Panel runat="server" ID="_pnlWest" Region="West" Width="200">
                </ext:Panel>
                <ext:Panel runat="server" ID="_pnlCenter" Region="Center">
                    <Items>
                        <ext:Button runat="server" Text="Show Window" Handler="onClick" />
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Viewport>
    
    
    </body>
    </html>
    Note that if you maximize the window the problem is more clear as shown below:

    Click image for larger version. 

Name:	errowindow001.png 
Views:	100 
Size:	25.6 KB 
ID:	24333

    Ext.Net 3.1.0.20777
    Chrome 46
    Firefox 42
    IE 11

    Thanks,
    Regards
    Last edited by Daniil; Dec 01, 2015 at 4:40 PM. Reason: [CLOSED]
  2. #2
    Hi @RCN,

    Thank you for the report! I was able to reproduce the issue in 3.1.0, but, fortunately, it is fixed in Ext.NET 3.2.1, at least.

Similar Threads

  1. [CLOSED] Window Renderto Parent
    By Kricher in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 11, 2014, 1:26 PM
  2. Replies: 4
    Last Post: Sep 27, 2013, 12:09 PM
  3. [CLOSED] Image alignment inside viewport
    By itel in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Mar 07, 2013, 8:00 PM
  4. viewport inside panel
    By UserClarion in forum 1.x Help
    Replies: 6
    Last Post: Jun 29, 2012, 7:17 AM
  5. [1.0] Panel RenderTo
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 22, 2010, 10:31 PM

Tags for this Thread

Posting Permissions