]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #4144
authorJohn Alhroos <john.ahlroos@itmill.com>
Tue, 11 May 2010 11:30:10 +0000 (11:30 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Tue, 11 May 2010 11:30:10 +0000 (11:30 +0000)
svn changeset:13146/svn branch:6.3

src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java

index d8b941323600cf6956c7e79effd20cab99e82eb5..052e4bcc8801f6f1de3f3cef90458185d77a608f 100644 (file)
@@ -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 {
             /*