From: John Alhroos Date: Tue, 11 May 2010 11:30:10 +0000 (+0000) Subject: Fix for #4144 X-Git-Tag: 6.7.0.beta1~1670^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61febb136b59899b9a256326a6dfeccc04d793fd;p=vaadin-framework.git Fix for #4144 svn changeset:13146/svn branch:6.3 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java index d8b9413236..052e4bcc88 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java @@ -621,6 +621,7 @@ public class VFilterSelect extends Composite implements Paintable, Field, // selected value has changed on the server-side. See #2119 private boolean popupOpenerClicked; private String width = null; + private String initialMeasuredWidth = null; private int textboxPadding = -1; private int componentPadding = -1; private int suggestionPopupMinWidth = 0; @@ -1143,7 +1144,7 @@ public class VFilterSelect extends Composite implements Paintable, Field, } private void updateRootWidth() { - if (width == null) { + if (width == null && initialMeasuredWidth == null) { /* * When the width is not specified we must specify width for root * div so the popupopener won't wrap to the next line and also so @@ -1171,6 +1172,10 @@ public class VFilterSelect extends Composite implements Paintable, Field, // Freeze the initial width, so that it won't change even if the // icon size changes width = w + "px"; + initialMeasuredWidth = width; + + } else if (initialMeasuredWidth != null) { + width = initialMeasuredWidth; } else { /*