]> source.dussan.org Git - vaadin-framework.git/commitdiff
Firefox now uses the overflow autofix + made sure we don't trigger a layout phase... 48/48/1
authorJohn Ahlroos <john@vaadin.com>
Wed, 3 Oct 2012 11:24:01 +0000 (14:24 +0300)
committerJohn Ahlroos <john@vaadin.com>
Wed, 3 Oct 2012 11:24:01 +0000 (14:24 +0300)
Change-Id: I5a5bdf5ffdf84f86054f3f6f1d79737e630e41cb

client/src/com/vaadin/client/BrowserInfo.java
client/src/com/vaadin/client/ui/ui/VUI.java

index e32e9b65f0f20dba8f23ed66cd9d56e1134ab307..fab393eedca23e8950a0f6133ca3bd0883f63f11 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright 2011 Vaadin Ltd.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
@@ -327,7 +327,7 @@ public class BrowserInfo {
      *         otherwise <code>false</code>
      */
     public boolean requiresOverflowAutoFix() {
-        return (getWebkitVersion() > 0 || getOperaVersion() >= 11)
+        return (getWebkitVersion() > 0 || getOperaVersion() >= 11 || isFirefox())
                 && Util.getNativeScrollbarSize() > 0;
     }
 
index 8d534053edee090ff5de332d5e73d4d8109b1779..096b0b60ba2a85e2dcc014c9ff548edc108030fd 100644 (file)
@@ -37,6 +37,7 @@ import com.vaadin.client.BrowserInfo;
 import com.vaadin.client.ComponentConnector;
 import com.vaadin.client.ConnectorMap;
 import com.vaadin.client.Focusable;
+import com.vaadin.client.LayoutManager;
 import com.vaadin.client.VConsole;
 import com.vaadin.client.ui.ShortcutActionHandler;
 import com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
@@ -286,7 +287,12 @@ public class VUI extends SimplePanel implements ResizeHandler,
 
             sendClientResized();
 
-            connector.getLayoutManager().layoutNow();
+            LayoutManager layoutManager = connector.getLayoutManager();
+            if (layoutManager.isLayoutRunning()) {
+                layoutManager.layoutLater();
+            } else {
+                layoutManager.layoutNow();
+            }
         }
     }