Permalink
Browse files

Changing z-index to top, to work around a jQuery bug.

  • Loading branch information...
1 parent 525f271 commit 83f7d0d2cc85daeca462d7714c99629f64e20471 @KuraFire committed Feb 6, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.runloop.0.9.js
@@ -147,7 +147,7 @@
execLog = [];
// Explicitly set runloop back to 0
- $(runloop).css({'z-index':0});
+ $(runloop).css({'top':0});
},
// Pauses the runloop at the current interval.
@@ -177,7 +177,7 @@
// We're in an ongoing runloop; shorten duration to remaining time
if (remainingDuration) {
duration = remainingDuration;
- $(runloop).css('z-index', Math.floor(currentStep)); // TODO: is this needed?
+ $(runloop).css('top', Math.floor(currentStep)); // TODO: is this needed?
}
// It is important to note at this point that it is entirely possible to still have
// a config.base of 5, but a duration that is less than 500ms. This unusual scenario is,
@@ -194,12 +194,12 @@
// Store duration in case it gets paused
currentDuration = duration;
- $(runloop).animate({'z-index':'100'}, {
+ $(runloop).animate({'top':'100'}, {
duration: duration,
step: function( step ) {
-
+ console.log('step: ' + step);
currentStep = step;
// Default is floor

0 comments on commit 83f7d0d

Please sign in to comment.