diff options
author | Manolo Carrasco <manolo@apache.org> | 2014-04-21 22:05:09 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2014-04-21 22:05:09 +0200 |
commit | 88fa4bdc3375b2912f01287cd52c789ccd66a40f (patch) | |
tree | 7ed84167214b2945546e2d4626994ae17716a994 | |
parent | ad826c4664531e1d110f832a576b16d7fe1f29ee (diff) | |
download | gwtquery-88fa4bdc3375b2912f01287cd52c789ccd66a40f.tar.gz gwtquery-88fa4bdc3375b2912f01287cd52c789ccd66a40f.zip |
Reflow is needed in FF.
-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(); |