diff options
author | Automerge <automerge@vaadin.com> | 2012-05-24 11:06:04 +0000 |
---|---|---|
committer | Automerge <automerge@vaadin.com> | 2012-05-24 11:06:04 +0000 |
commit | ce78aaeb78cf7e48e91a8e76ecb5f48531baea6c (patch) | |
tree | 09bee7b5cd9606c9b15b3e27a49cf34ee8fec7f7 /src/com/vaadin | |
parent | cb20a6b202937c4b2fa96cc23db6cf4301097203 (diff) | |
download | vaadin-framework-ce78aaeb78cf7e48e91a8e76ecb5f48531baea6c.tar.gz vaadin-framework-ce78aaeb78cf7e48e91a8e76ecb5f48531baea6c.zip |
[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
Diffstat (limited to 'src/com/vaadin')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |