# HG changeset patch # User gernotbelger # Date 1532422269 -7200 # Node ID fe207a8699f76eddee8fd7aa7b19a71c9ef2a031 # Parent 82c67b859aa771de5df19776d2eb2bf1aa9415aa Changed optics of groups in module selection diff -r 82c67b859aa7 -r fe207a8699f7 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ModuleSelection.java --- 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 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; }