From: Automerge Date: Thu, 24 May 2012 11:06:04 +0000 (+0000) Subject: [merge from 6.7] #8801 Recompute VFilterSelect textbox width if popup opener width... X-Git-Tag: 7.0.0.alpha3~135^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ce78aaeb78cf7e48e91a8e76ecb5f48531baea6c;p=vaadin-framework.git [merge from 6.7] #8801 Recompute VFilterSelect textbox width if popup opener width has changed eg. due to a style/theme change svn changeset:23823/svn branch:6.8 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java index 8362d6fbec..4ecb42d920 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java @@ -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) {