# HG changeset patch # User Christian Lins # Date 1346360054 0 # Node ID 6eeacd0bbe265163617ef08489d2c6d3c336ffac # Parent ffbdd093da7403c4e5f33a6d2577c1d5f097d497 New projects are now maximized by default. flys-client/trunk@5321 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r ffbdd093da74 -r 6eeacd0bbe26 flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java: diff -r ffbdd093da74 -r 6eeacd0bbe26 flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.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); diff -r ffbdd093da74 -r 6eeacd0bbe26 flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java --- 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(); + + 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);