From 6b9b4ee8e5c9518cea4504d9f90c6b32a4875135 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Tue, 13 Mar 2012 12:32:48 +0200 Subject: [PATCH] Ensure the height of both captions are take into account (#8313) --- src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java index cb495293cc..5aafa2d1e0 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTwinColSelect.java @@ -337,14 +337,9 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler, } void setInternalHeights() { - int captionHeight = 0; + int captionHeight = Util.getRequiredHeight(captionWrapper); int totalHeight = getOffsetHeight(); - if (optionsCaption != null) { - captionHeight = Util.getRequiredHeight(optionsCaption); - } else if (selectionsCaption != null) { - captionHeight = Util.getRequiredHeight(selectionsCaption); - } String selectHeight = (totalHeight - captionHeight) + "px"; selections.setHeight(selectHeight); -- 2.39.5