From 88fa4bdc3375b2912f01287cd52c789ccd66a40f Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 21 Apr 2014 22:05:09 +0200 Subject: [PATCH] Reflow is needed in FF. --- .../client/plugins/effects/TransitionsAnimation.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) mode change 100755 => 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java old mode 100755 new mode 100644 index df3da8f3..29b73548 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java @@ -249,10 +249,14 @@ public class TransitionsAnimation extends PropertiesAnimation { @Override public void run(int duration) { onStart(); + + // Compute initial properties Properties p = getFxProperties(true); - g.css(p); - // TODO: Reflow, it seems it is not needed in chrome and FF, check other browsers - // g.css("offsetHeight"); + g.css(p) + // Some browsers need after setting initial properties re-flow (FF 24.4.0). + .offset(); + + // Compute final properties p = getFxProperties(false); g.transition(p, duration, easing, delay, new Function(){public void f() { onComplete(); -- 2.39.5