Skip to content

Commit

Permalink
Fixed IE invalid argument issue
Browse files Browse the repository at this point in the history
  • Loading branch information
razorjack committed Mar 22, 2010
1 parent fbea317 commit 5374b63
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions jquery.quicksand.js
Expand Up @@ -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());
Expand All @@ -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';
});
Expand Down

0 comments on commit 5374b63

Please sign in to comment.