changeset 9289:fe207a8699f7

Changed optics of groups in module selection
author gernotbelger
date Tue, 24 Jul 2018 10:51:09 +0200
parents 82c67b859aa7
children 913bc7d1d2a8
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ModuleSelection.java
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ModuleSelection.java	Tue Jul 24 10:39:03 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ModuleSelection.java	Tue Jul 24 10:51:09 2018 +0200
@@ -221,7 +221,6 @@
             final  ModuleGroup group = groupEntry.getKey();
             final List<Module> groupModule = groupEntry.getValue();
             
-            
             final RadioGroupItem moduleRadio = new RadioGroupItem("modulegroup" + count++);
             moduleRadio.setShowTitle(false);
             moduleRadio.setWrap(false);
@@ -254,16 +253,21 @@
             if( group.showGroupFrame() )
             {
                 final HLayout layout = new HLayout();
+                layout.setIsGroup(true);
+                layout.setGroupTitle(group.toString());
+                layout.setWidth("250");
 
+                /* push elements to right */
                 final LayoutSpacer spacer = new LayoutSpacer();
-                // so text is on the same level as other items (with radio-icon), lets hope 25px is always right
-                spacer.setWidth(25);
+                spacer.setWidth("*");
                 layout.addMember(spacer);
 
-                final Label label = new Label(group.toString());
-                layout.addMember(label);
+                layout.addMember(groupForm);
 
-                layout.addMember(groupForm);
+                /* put leave a bit space on the right side */
+                final LayoutSpacer spacer2 = new LayoutSpacer();
+                spacer2.setWidth("15");
+                layout.addMember(spacer2);
                 
                 groupPanel = layout;
             }

http://dive4elements.wald.intevation.org