]> source.dussan.org Git - vaadin-framework.git/commitdiff
Reverted change in how hack works (#12727, #12736)
authorArtur Signell <artur@vaadin.com>
Mon, 4 Nov 2013 09:26:54 +0000 (11:26 +0200)
committerVaadin Code Review <review@vaadin.com>
Mon, 4 Nov 2013 09:39:16 +0000 (09:39 +0000)
The fix for Window slightly altered how the hack was done, breaking #12736

Change-Id: I2d33b45421c40ce011d2e728a573f7572e326c47

client/src/com/vaadin/client/Util.java

index 8a5712215ddea316fe5248904c91dc5e4f482340..206aa83c2bb57aabde65d6f4af8bc07db3cd1b98 100644 (file)
@@ -556,10 +556,10 @@ public class Util {
                     final String oldHeight = scrollable.getStyle().getHeight();
 
                     scrollable.getStyle().setWidth(110, Unit.PCT);
-                    scrollable.getStyle().setHeight(110, Unit.PCT);
                     scrollable.getOffsetWidth();
-                    scrollable.getOffsetHeight();
                     scrollable.getStyle().setProperty("width", oldWidth);
+                    scrollable.getStyle().setHeight(110, Unit.PCT);
+                    scrollable.getOffsetHeight();
                     scrollable.getStyle().setProperty("height", oldHeight);
 
                     // Restore the scroll position