Mercurial > dive4elements > river
changeset 9291:913bc7d1d2a8
Merge
author | gernotbelger |
---|---|
date | Tue, 24 Jul 2018 11:26:15 +0200 |
parents | fe207a8699f7 (diff) 3729434f6dec (current diff) |
children | e6958f0e72fa |
files | |
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 11:12:46 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ModuleSelection.java Tue Jul 24 11:26:15 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; }