From: Leif Åstrand Date: Thu, 15 Mar 2012 11:00:13 +0000 (+0200) Subject: Ensure new layout if caption height changes (#8313) X-Git-Tag: 7.0.0.alpha2~304^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=98f503f827c8c9c640956802c0ea554740328660;p=vaadin-framework.git Ensure new layout if caption height changes (#8313) --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java b/src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java index 1092a7f91d..03bb70d01a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java @@ -25,6 +25,12 @@ public class TwinColSelectConnector extends OptionGroupBaseConnector implements super.updateFromUIDL(uidl, client); } + @Override + protected void init() { + getLayoutManager().registerDependency(this, + getWidget().captionWrapper.getElement()); + } + @Override protected Widget createWidget() { return GWT.create(VTwinColSelect.class); diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java index 5aafa2d1e0..7f12a04574 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java @@ -44,7 +44,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler, private final DoubleClickListBox selections; - private FlowPanel captionWrapper; + FlowPanel captionWrapper; private HTML optionsCaption = null;