changeset 8612:b5854a9b101c

(issue869) Add spacer for multiline items This works because single line values now have a height of 15 + spacer (which amounts to the 20 it was before). Multiline columns can have any height as this is generated automatically on breaks to show all text. We now add +5 there so that they have at least some space.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 24 Mar 2015 15:22:16 +0100
parents e331a5ad2554
children 39ce099a6551
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterMatrixPanel.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterMatrixPanel.java	Tue Mar 24 11:57:23 2015 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterMatrixPanel.java	Tue Mar 24 15:22:16 2015 +0100
@@ -15,6 +15,7 @@
 import com.smartgwt.client.widgets.Label;
 import com.smartgwt.client.widgets.layout.HLayout;
 import com.smartgwt.client.widgets.layout.VLayout;
+import com.smartgwt.client.widgets.layout.LayoutSpacer;
 
 import org.dive4elements.river.client.client.FLYSConstants;
 import org.dive4elements.river.client.shared.model.Data;
@@ -132,9 +133,12 @@
 
                 value.setValign(com.smartgwt.client.types.VerticalAlignment.TOP);
                 value.setWidth(130);
-                value.setHeight(20);
+                value.setHeight(15);
 
                 cols.addMember(value);
+                LayoutSpacer spacer = new LayoutSpacer();
+                spacer.setHeight(5);
+                cols.addMember(spacer);
             }
 
             row.addMember(parameter);

http://dive4elements.wald.intevation.org