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 /client | |
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 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java b/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java index c0d96fa32a..a5edf00812 100644 --- a/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java @@ -74,6 +74,8 @@ public class ComboBoxConnector extends AbstractFieldConnector implements getWidget().filteringmode = getState().filteringMode; + getWidget().suggestionPopupWidth = getState().suggestionPopupWidth; + Profiler.leave("ComboBoxConnector.onStateChanged update content"); } @@ -99,13 +101,6 @@ public class ComboBoxConnector extends AbstractFieldConnector implements getWidget().currentPage = uidl.getIntVariable("page"); - if (uidl.hasAttribute("suggestionPopupWidth")) { - getWidget().suggestionPopupWidth = uidl - .getStringAttribute("suggestionPopupWidth"); - } else { - getWidget().suggestionPopupWidth = null; - } - getWidget().suggestionPopup.updateStyleNames(getState()); getWidget().allowNewItem = uidl.hasAttribute("allownewitem"); |