diff options
-rw-r--r--[-rwxr-xr-x] | gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java | 10 |
1 files changed, 7 insertions, 3 deletions
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 index df3da8f3..29b73548 100755..100644 --- 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(); |