]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ensure new layout if caption height changes (#8313)
authorLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 11:00:13 +0000 (13:00 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 15:00:06 +0000 (17:00 +0200)
src/com/vaadin/terminal/gwt/client/ui/TwinColSelectConnector.java
src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java

index 1092a7f91d91e25411a6e37ca3c09bcf02afb0db..03bb70d01add44dee319ad7ad8b21abb5ad51a6c 100644 (file)
@@ -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);
index 5aafa2d1e09c5fa0cb825d5e221db0f79e7796d9..7f12a045741c71ada25cf2540945e2ecdb6a71d8 100644 (file)
@@ -44,7 +44,7 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
 
     private final DoubleClickListBox selections;
 
-    private FlowPanel captionWrapper;
+    FlowPanel captionWrapper;
 
     private HTML optionsCaption = null;