PDA

View Full Version : [CLOSED] How to position a window into a desktop on window open



feanor91
Sep 14, 2012, 8:03 AM
Hello

By default, when opening a window, it open in desktop center, but I need a different behavior, I want to open a window at 0,0 coordinate and open several over window below the first.

I try to use X, and Y properties of the window, but it didnt works:



<%@ Page Language="C#" %>

<%@ 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>
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>

<body>
<form id="form1" runat="server">
<ext:Desktop
ID="MyDesktop"
runat="server">
<DesktopConfig ID="DesktopConfig1" runat="server" Icons="start-button">
</DesktopConfig>

<Modules>

<%-- Backlog window--%>
<ext:DesktopModule ModuleID="Backlog">
<Window>
<ext:Window
ID="wndBacklog"
runat="server"
Width="1280"
Height="320"
Layout="Fit"
Hidden="True"
ExpandOnShow="True"
MinHeight="100"
MinWidth="100"
Maximizable="false"
Resizable="false"
TitleCollapse="true"
Title="Backlog"
TitleAlign="Center"
Collapsible="True"
X="0"
Y="0">
</ext:Window>
</Window>
</ext:DesktopModule>
</Modules>

<StartMenu ID="StartMenu1" Height="300" Title="Start Here" runat="server" HideTools="True">
<MenuItems>
<ext:MenuItem Text="Backlog" Icon="Bell">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Backlog').createWindow();" />
</Listeners>
</ext:MenuItem>
</MenuItems>
</StartMenu>

<TaskBar ID="TaskBar1" runat="server" TrayWidth="50">
<TrayClock ID="TrayClock1" runat="server" ></TrayClock>
</TaskBar>
</ext:Desktop>
</form>
</body>
</html>

Vladimir
Sep 14, 2012, 10:54 AM
Try X="1" Y="1"

feanor91
Sep 14, 2012, 12:00 PM
It works...thanks

Daniil
Nov 26, 2012, 1:48 PM
It has been fixed in SVN. Now you can use X="0" and/or Y="0".

Thank you for the report.

feanor91
Nov 26, 2012, 1:59 PM
Perfect thanks