Jan 25, 2012, 2:39 PM
[CLOSED] V2.0 DeskTop Window Restore
Hi, open a window on Desktop, the window is opened with the exact size, maximize the window and restore, the position is shifted to botton, remaximized and reRestore e the position it's again shifted to botton, the result is that the window disappears down..
In the example: https://examples2.ext.net/#/Desktop/...tion/Overview/
the GridWindow work ok, maximized and restore the position not shift to the botton and I can not understand why my window is moved down.
Here my Code:
Thank
Aurelio
In the example: https://examples2.ext.net/#/Desktop/...tion/Overview/
the GridWindow work ok, maximized and restore the position not shift to the botton and I can not understand why my window is moved down.
Here my Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ARWebRevolution.WebForm1" %>
<%@ 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">
</ext:ResourceManager>
<ext:Desktop ID="DesktopHome" runat="server">
<DesktopConfig ID="DesktopConfigHome" Wallpaper="Images/Wallpaper/desk.jpg" WallpaperStretch="true">
<TopBar>
<ext:Toolbar runat="server" Height="70" Layout="FitLayout" AnchorHorizontal="100%">
<Items>
<ext:Panel ID="PanelHeader" runat="server" Region="North" Height="70" Title="Test conversion 1.2 to 2.0"
Cls="textCenter" AutoScroll="true">
<TopBar>
<ext:Toolbar ID="ToolbarHeader" runat="server" Height="40">
<Items>
<ext:Button ID="SplitButton2" runat="server" Text="Utenti" Icon="User" Scale="Medium">
<Menu>
<ext:Menu ID="Menu1" runat="server">
<Items>
<ext:MenuItem ID="MenuItem1" runat="server" Text="Utenti" Icon="Add">
<Listeners>
<Click Handler="openUtenti(#{DesktopHome});" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem ID="MenuItem2" runat="server" Text="Item2" />
<ext:MenuItem ID="MenuItem3" runat="server" Text="Item3" />
</Items>
</ext:Menu>
</Menu>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
</Items>
</ext:Toolbar>
</TopBar>
</DesktopConfig>
<TaskBar>
</TaskBar>
</ext:Desktop>
</form>
</body>
<script type="text/javascript">
var show = function (app, windowId, pagina, titolo, icona, width, height) {
var desktop = app.getDesktop()
//Controlla se la finestra è già aperta
win = desktop.windows.get(windowId);
if (!win) {
//Se non è già aperta crea la nuova finestra
var cfg = {
id: windowId,
runat: 'server',
title: titolo,
iconCls: icona,
x: 20,
y: 20,
width: width,
height: height,
maxHeight: (app.viewport.height - 100),
closeAction: 'Destroy',
minimizable: true,
maximizable: true,
border: true,
loader:
{
url: pagina,
renderer: 'frame'
}
};
win = desktop.createWindow(cfg);
}
win.show();
};
var openUtenti = function (app) {
show(app, 'winUtenti', 'http://www.ext.net', 'Prova', '#User', 900, 600);
};
</script>
</html>
If you could please help meThank
Aurelio
Last edited by Daniil; Jan 30, 2012 at 11:14 AM.
Reason: [CLOSED]