[FIXED] [#1565] [4.5.0] Desktop - open window maximized

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [FIXED] [#1565] [4.5.0] Desktop - open window maximized

    Hello support team,
    the maximized window is not opened at the position [0,0]. However, window restore is OK.

    @using Ext.Net;
    @using Ext.Net.MVC;
    
    @{
        Layout = null;
        var X = Html.X();
    }
    
    <!DOCTYPE html>
    
    <html>
    <head>
        <title>Ext.NET MVC Test Case - Open Window Maximized</title>
    
        <style>
            .x-default-shortcut {
                background: url("http://www.nlm.cz/img/logoNewlink.png");
                background-position: center;
                background-repeat: no-repeat;
                background-size: cover;
            }
        </style>
    </head>
    
    <body>
        @X.ResourceManager()
    
        @(X.Desktop()
            .ID("_nelisDesktop")
            .DesktopConfig(
                X.DesktopConfig()
                .ID("_nelisDesktop_Area")
                .ShortcutDefaults(defaults => defaults.IconCls = "x-default-shortcut")
            )
            .Modules(
                X.DesktopModule()
                    .ModuleID("Notepad")
                    .Shortcut(new DesktopShortcut {
                        Name = "Notepad",
                        IconCls = "x-default-shortcut",
                        X = "100",
                        Y = "100",
                        Handler = "var win = App._nelisDesktop.desktop.createWindow({ autoRender: false, x: 250, y: 250, width: 300, height: 300, xtype: 'window', title: 'Notepad', iconCls: '#ApplicationAdd', defaultRenderTo: 'form', maximized: true }); win.show();"
                    })
            )
        )
    </body>
    </html>
    Steps to reproduce:
    1. Open notepad window -> positioning is incorrect
    2. Restore to initial size -> correct

    Thank you for your help.

    Dan
    Last edited by NewLink; Oct 08, 2017 at 4:29 PM.

Similar Threads

  1. [CLOSED] Initially maximized window does not restore to fixed size
    By AaronDev in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 22, 2014, 8:23 AM
  2. Replies: 11
    Last Post: Apr 29, 2013, 4:03 AM
  3. [CLOSED] How to position a window into a desktop on window open
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 26, 2012, 1:59 PM
  4. [CLOSED] Show Desktop window maximized - strange behavior
    By FAS in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 03, 2012, 5:58 PM
  5. [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

Tags for this Thread

Posting Permissions