diff options
author | Henri Sara <hesara@vaadin.com> | 2016-07-29 12:43:57 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-08 11:37:17 +0000 |
commit | 86e987f2930fb7d118447d1b50668ace5dfe0ff6 (patch) | |
tree | 3612162e05cee80c066fc27534eb186f5eff92d7 /server | |
parent | d4c2a27a78877a4e3666a844afaeeeca0d9b8477 (diff) | |
download | vaadin-framework-86e987f2930fb7d118447d1b50668ace5dfe0ff6.tar.gz vaadin-framework-86e987f2930fb7d118447d1b50668ace5dfe0ff6.zip |
Moved ComboBox suggestion popup width to shared state
Change-Id: Ifdadc24ff922761eb78c4e5168f0e83fbf47108a
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/ComboBox.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java index 364b7a3d07..4ee180e6d8 100644 --- a/server/src/main/java/com/vaadin/ui/ComboBox.java +++ b/server/src/main/java/com/vaadin/ui/ComboBox.java @@ -162,8 +162,6 @@ public class ComboBox extends AbstractSelect implements */ private boolean scrollToSelectedItem = true; - private String suggestionPopupWidth = null; - /** * If text input is not allowed, the ComboBox behaves like a pretty * NativeSelect - the user can not enter any text and clicking the text @@ -279,11 +277,6 @@ public class ComboBox extends AbstractSelect implements String[] selectedKeys = new String[(getValue() == null && getNullSelectionItemId() == null ? 0 : 1)]; - if (suggestionPopupWidth != null) { - target.addAttribute("suggestionPopupWidth", - suggestionPopupWidth); - } - // Paints the options and create array of selected id keys int keyIndex = 0; @@ -887,7 +880,7 @@ public class ComboBox extends AbstractSelect implements * @since 7.7 */ public String getPopupWidth() { - return suggestionPopupWidth; + return getState(false).suggestionPopupWidth; } /** @@ -912,8 +905,7 @@ public class ComboBox extends AbstractSelect implements * the width */ public void setPopupWidth(String width) { - suggestionPopupWidth = width; - markAsDirty(); + getState().suggestionPopupWidth = width; } /** |