X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=core%2Forg.argeo.entity.ui%2Fsrc%2Forg%2Fargeo%2Fentity%2Fui%2Fforms%2FMultiTermsPart.java;h=7628a3ab12386443e45874ecce100d97c20552a2;hb=d2996b5b62561b2f10bdba786551076607e94d9c;hp=af8df82b0184f574e1f0a74dc81e88377020f65c;hpb=9df6aa1957222703ed0ce39a731b87a61c9699b9;p=gpl%2Fargeo-suite.git diff --git a/core/org.argeo.entity.ui/src/org/argeo/entity/ui/forms/MultiTermsPart.java b/core/org.argeo.entity.ui/src/org/argeo/entity/ui/forms/MultiTermsPart.java index af8df82..7628a3a 100644 --- a/core/org.argeo.entity.ui/src/org/argeo/entity/ui/forms/MultiTermsPart.java +++ b/core/org.argeo.entity.ui/src/org/argeo/entity/ui/forms/MultiTermsPart.java @@ -44,14 +44,16 @@ public class MultiTermsPart extends AbstractTermsPart { boolean vertical = SWT.VERTICAL == (getStyle() & SWT.VERTICAL); RowLayout rl = new RowLayout(vertical ? SWT.VERTICAL : SWT.HORIZONTAL); - rl.wrap = true; + rl = CmsUiUtils.noSpaceRowLayout(rl); +// rl.wrap = true; +// rl.justify = true; placeholder.setLayout(rl); List currentValue = getValue(); - if (currentValue != null && !currentValue.isEmpty()) + if (currentValue != null && !currentValue.isEmpty()) { for (Term value : currentValue) { Composite block = new Composite(placeholder, SWT.NONE); block.setLayout(CmsUiUtils.noSpaceGridLayout(3)); - Label lbl = new Label(block, SWT.SINGLE); + Label lbl = new Label(block, SWT.NONE); String display = getTermLabel(value); lbl.setText(display); CmsUiUtils.style(lbl, style == null ? FormStyle.propertyText.style() : style); @@ -79,7 +81,7 @@ public class MultiTermsPart extends AbstractTermsPart { } } - else {// empty + } else {// empty if (isEditable() && !isEditing()) { ToolBar toolBar = new ToolBar(placeholder, SWT.HORIZONTAL); ToolItem addItem = new ToolItem(toolBar, SWT.FLAT);