changeset 1381:4459901e4ec0

Updated the theme editor window layout. flys-client/trunk@3135 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 01 Nov 2011 16:07:39 +0000
parents 2d617c48ca5f
children 78542ff1f562
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Nov 01 15:01:37 2011 +0000
+++ b/flys-client/ChangeLog	Tue Nov 01 16:07:39 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-01  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
+	  Updated the theme editor window layout.
+
 2011-11-01  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Issue 400.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Tue Nov 01 15:01:37 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Tue Nov 01 16:07:39 2011 +0000
@@ -21,6 +21,7 @@
 import com.smartgwt.client.widgets.form.events.ItemChangedEvent;
 import com.smartgwt.client.widgets.form.events.ItemChangedHandler;
 import com.smartgwt.client.types.Alignment;
+import com.smartgwt.client.types.VerticalAlignment;
 
 import de.intevation.flys.client.shared.model.Collection;
 import de.intevation.flys.client.shared.model.CollectionItemAttribute;
@@ -94,6 +95,7 @@
         setTitle(MSG.properties());
         setCanDragReposition(true);
         setCanDragResize(true);
+        layout.setMargin(10);
 
         layout.setWidth100();
         layout.setHeight100();
@@ -116,15 +118,16 @@
 
         buttons.addMember(accept);
         buttons.addMember(cancel);
-        buttons.setAlign(Alignment.RIGHT);
+        buttons.setAlign(Alignment.CENTER);
+        buttons.setHeight(30);
 
         VLayout propGrid = createPropertyGrid();
 
         layout.addMember(propGrid);
         layout.addMember(buttons);
         addItem(layout);
-        setWidth(270);
-        setHeight(propGrid.getChildren().length * 25 + 50);
+        setWidth(300);
+        setHeight(410);
     }
 
 

http://dive4elements.wald.intevation.org