diff options
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; } /** |