changeset 3522:6eeacd0bbe26

New projects are now maximized by default. flys-client/trunk@5321 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Thu, 30 Aug 2012 20:54:14 +0000
parents ffbdd093da74
children 6626ed6e3511
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java
diffstat 3 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Aug 30 08:59:41 2012 +0000
+++ b/flys-client/ChangeLog	Thu Aug 30 20:54:14 2012 +0000
@@ -1,3 +1,9 @@
+2012-08-30	Christian Lins	<christian.lins@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/CollectionView.java,
+	  src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java:
+	  New projects are now initially maximized to prevent IE-layout issue (#755).
+
 2012-08-30	Christian Lins	<christian.lins@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Thu Aug 30 08:59:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Thu Aug 30 20:54:14 2012 +0000
@@ -224,7 +224,9 @@
     protected void init() {
         setWidth(1010);
         setHeight(700);
-
+        
+        setMaximized(true);
+       
         layout.setWidth100();
 
         setCanDragReposition(true);
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java	Thu Aug 30 08:59:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java	Thu Aug 30 20:54:14 2012 +0000
@@ -29,6 +29,9 @@
      */
     public FLYSWorkspace() {
         views = new HashMap<String, CollectionView>();
+
+        setWidth("100%");
+        setHeight("100%");
     }
 
 
@@ -39,10 +42,8 @@
      * @param collectionView A new CollectionView.
      */
     public void addView(String uuid, CollectionView collectionView) {
-        int num    = views != null ? views.size() : 0;
-        int factor = num % MAX_WINDOWS;
-
-        collectionView.moveTo(factor * WINDOW_OFFSET, factor * WINDOW_OFFSET);
+        collectionView.moveTo(0, 0);
+        collectionView.setMaximized(true);
 
         views.put(uuid, collectionView);
         addChild(collectionView);

http://dive4elements.wald.intevation.org