From 98f503f827c8c9c640956802c0ea554740328660 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Thu, 15 Mar 2012 13:00:13 +0200 Subject: [PATCH] Ensure new layout if caption height changes (#8313) --- .../terminal/gwt/client/ui/TwinColSelectConnector.java | 6 ++++++ src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.5