changeset 1338:c730f0438510

Set window position to page center. flys-client/trunk@2983 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 17 Oct 2011 10:22:19 +0000
parents 9bf72f84728d
children d935fd42ae0e
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java
diffstat 3 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Oct 17 10:10:36 2011 +0000
+++ b/flys-client/ChangeLog	Mon Oct 17 10:22:19 2011 +0000
@@ -1,3 +1,10 @@
+2011-10-17  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java,
+	  src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
+	  Set window position to page center.
+	  Removed parent element.
+
 2011-10-17  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Mon Oct 17 10:10:36 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Mon Oct 17 10:22:19 2011 +0000
@@ -86,11 +86,9 @@
         setHeight(200);
         setCanDragReposition(true);
         setCanDragResize(true);
-        setKeepInParentRect(true);
 
         layout.setWidth100();
         layout.setHeight100();
-
     }
 
 
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Mon Oct 17 10:10:36 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Mon Oct 17 10:22:19 2011 +0000
@@ -566,8 +566,8 @@
             collection,
             cia,
             record);
-        win.setParentElement(view.getParentElement());
         win.setThemePanel(this);
+        win.centerInPage();
         win.show();
     }
 }

http://dive4elements.wald.intevation.org