aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/WidgetUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/WidgetUtil.java b/client/src/com/vaadin/client/WidgetUtil.java
index b0e0030769..a861c6d8f6 100644
--- a/client/src/com/vaadin/client/WidgetUtil.java
+++ b/client/src/com/vaadin/client/WidgetUtil.java
@@ -995,9 +995,12 @@ public class WidgetUtil {
final String currentValue = style.getProperty(styleProperty);
style.setProperty(styleProperty, tempValue);
+
+ // Read a style-based property to force the browser to recalculate the
+ // element's dimensions with the temporary style.
element.getOffsetWidth();
- style.setProperty(styleProperty, currentValue);
+ style.setProperty(styleProperty, currentValue);
}
/**