Oct 08, 2017, 4:25 PM
[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.
1. Open notepad window -> positioning is incorrect
2. Restore to initial size -> correct
Thank you for your help.
Dan
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.