summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VFilterSelect.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java b/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java
index 3efd872e3b..8411e05490 100644
--- a/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java
+++ b/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java
@@ -870,7 +870,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
* @param naturalMenuWidth
*/
private void updateMenuWidth(final int desiredWidth,
- final int naturalMenuWidth) {
+ int naturalMenuWidth) {
/**
* Three different width modes for the suggestion pop-up:
*
@@ -885,6 +885,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
String width = "auto";
if (suggestionPopupWidth == null) {
if (naturalMenuWidth < desiredWidth) {
+ naturalMenuWidth = desiredWidth - popupOuterPadding;
width = (desiredWidth - popupOuterPadding) + "px";
}
} else if (isrelativeUnits(suggestionPopupWidth)) {