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=8d407638626ecc8885b08b2b78d53b47f86bc591;hb=752a7b2614895002a3d184be166ef4162caf0d05;hp=711596f22433cf7cfa77ccad0a63babea42d0bb5;hpb=d2bb04928fea1e04bf13b97f6dec89100b01325f;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 711596f..8d40763 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,17 +44,20 @@ 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.noMarginsRowLayout(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); + processTermListLabel(value, lbl); if (isEditable()) lbl.addMouseListener((MouseDoubleClick) (e) -> { startEditing(); @@ -78,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);