]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] #8801 Recompute VFilterSelect textbox width if popup opener width...
authorAutomerge <automerge@vaadin.com>
Thu, 24 May 2012 11:06:04 +0000 (11:06 +0000)
committerAutomerge <automerge@vaadin.com>
Thu, 24 May 2012 11:06:04 +0000 (11:06 +0000)
svn changeset:23823/svn branch:6.8

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

index 8362d6fbec069a2482f0dc9b48edd22cf417eda3..4ecb42d92085f74b31b22dc2d27845585fdc883c 100644 (file)
@@ -1237,6 +1237,12 @@ public class VFilterSelect extends Composite implements Paintable, Field,
             updateRootWidth();
         }
 
+        // Popup opener width may have changed due to a style change (#8801)
+        if (!readonly && popupWidth != Util.getRequiredWidth(popupOpener)) {
+            popupWidth = Util.getRequiredWidth(popupOpener);
+            updateRootWidth();
+        }
+
         // Focus dependent style names are lost during the update, so we add
         // them here back again
         if (focused) {