changeset 273:905daf30221a

ISSUE 34: Move every new project window 20 px down and right. flys-client/trunk@1899 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 11 May 2011 11:44:23 +0000
parents d3c053420c3b
children 71a7533555d0
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed May 11 11:07:18 2011 +0000
+++ b/flys-client/ChangeLog	Wed May 11 11:44:23 2011 +0000
@@ -1,3 +1,11 @@
+2011-05-11  Raimund Renkert <rrenkert@intevation.de>
+
+	  ISSUE 34
+
+	* src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java:
+	  Move every new project window 20 px multiplicated with the window count
+	  down and right.
+
 2011-05-11  Raimund Renkert <rrenkert@intevation.de>
 
 	  ISSUE 44
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java	Wed May 11 11:07:18 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java	Wed May 11 11:44:23 2011 +0000
@@ -31,6 +31,11 @@
      * @param collectionView A new CollectionView.
      */
     public void addView(CollectionView collectionView) {
+        if (views.size() > 0) {
+          collectionView.moveTo(
+              views.size() * 20,
+              views.size() * 20);
+        }
         views.add(collectionView);
         addChild(collectionView);
     }

http://dive4elements.wald.intevation.org