From ce78aaeb78cf7e48e91a8e76ecb5f48531baea6c Mon Sep 17 00:00:00 2001 From: Automerge Date: Thu, 24 May 2012 11:06:04 +0000 Subject: [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 --- src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3