Permalink
Browse files

Fixed IE invalid argument issue

  • Loading branch information...
1 parent fbea317 commit 5374b6339aec9a769d7999d68066b0e463735fad @razorjack razorjack committed Mar 22, 2010
Showing with 8 additions and 2 deletions.
  1. +8 −2 jquery.quicksand.js
View
@@ -99,10 +99,15 @@ Github site: http://github.com/razorjack/quicksand
}
// perform custom corrections from options (use when Quicksand fails to detect proper correction)
+ if (isNaN(correctionOffset.left)) {
+ correctionOffset.left = 0;
+ }
+ if (isNaN(correctionOffset.top)) {
+ correctionOffset.top = 0;
+ }
+
correctionOffset.left -= options.dx;
correctionOffset.top -= options.dy;
-
-
// keeps nodes after source container, holding their position
$sourceParent.css('height', $(this).height());
@@ -128,6 +133,7 @@ Github site: http://github.com/razorjack/quicksand
rawObj.style.position = 'absolute';
rawObj.style.margin = '0';
+
rawObj.style.top = (offsets[i].top - parseFloat(rawObj.style.marginTop) - correctionOffset.top + dy) + 'px';
rawObj.style.left = (offsets[i].left - parseFloat(rawObj.style.marginLeft) - correctionOffset.left + dx) + 'px';
});

0 comments on commit 5374b63

Please sign in to comment.