SEBSERV-84 fixed also for Chrome and IE

This commit is contained in:
anhefti 2019-08-13 16:57:56 +02:00
parent fad7876fff
commit 39dde1d9a7
2 changed files with 5 additions and 3 deletions

View file

@ -206,8 +206,9 @@ public final class MultiSelectionCombo extends Composite implements Selection {
this.selectionControls.add(new Tuple<>(label, imageButton)); this.selectionControls.add(new Tuple<>(label, imageButton));
this.combo.remove(itemName); this.combo.remove(itemName);
this.updateAnchor.layout();
PageService.updateScrolledComposite(this); PageService.updateScrolledComposite(this);
this.updateAnchor.layout(true, true);
} }
private void removeComboSelection(final Event event) { private void removeComboSelection(final Event event) {
@ -233,8 +234,8 @@ public final class MultiSelectionCombo extends Composite implements Selection {
final Tuple<String> value = this.selectedValues.remove(indexOf); final Tuple<String> value = this.selectedValues.remove(indexOf);
this.combo.add(value._2, this.combo.getItemCount()); this.combo.add(value._2, this.combo.getItemCount());
this.updateAnchor.layout();
PageService.updateScrolledComposite(this); PageService.updateScrolledComposite(this);
this.updateAnchor.layout(true, true);
if (this.listener != null) { if (this.listener != null) {
this.listener.handleEvent(event); this.listener.handleEvent(event);
} }

View file

@ -540,7 +540,8 @@ public class WidgetFactory {
parent, parent,
this, this,
actionLocTextPrefix, actionLocTextPrefix,
parent); // NOTE parent would work for firefox but on IE and Chrome only parent.getParent().getParent() works
parent.getParent().getParent());
break; break;
case MULTI_CHECKBOX: case MULTI_CHECKBOX:
selection = new MultiSelectionCheckbox(parent); selection = new MultiSelectionCheckbox(parent);