Permalink
Browse files

Additional minor fixes with height. Releasing 1.1.

  • Loading branch information...
1 parent 3312600 commit df3876293660fad5ef4e4c094cb45918e98b08e7 @razorjack committed Feb 12, 2010
Showing with 31 additions and 16 deletions.
  1. +13 −0 RELEASE_NOTES.textile
  2. +12 −10 jquery.quicksand.js
  3. +6 −6 jquery.quicksand.min.js
View
@@ -0,0 +1,13 @@
+h1. jQuery Quicksand plugin release notes
+
+h2. v1.1
+
+# Fixed issues with position: relative
+# Fixed occasional flickering
+# Moderate performance improvements
+# Disabled any animation in IE6 for more safety
+# Added support for jQuery 1.3
+
+h2. v1.0
+
+First, feature-complete release of jQuery Quicksand plugin.
View
@@ -1,6 +1,6 @@
/*
-Quicksand 1.0
+Quicksand 1.1
Reorder and filter items with a nice shuffling animation.
@@ -73,7 +73,13 @@ Github site: http://github.com/razorjack/quicksand
var offsets = []; // coordinates of every source collection item
var $source = $(this).find(options.selector); // source collection items
-
+
+ // Replace the collection and quit if IE6
+ if ($.browser.msie && $.browser.version.substr(0,1)<7) {
+ $sourceParent.html('').append($collection);
+ return;
+ }
+
// Gets called when any animation is finished
var postCallbackPerformed = 0; // prevents the function from being called more than one time
var postCallback = function () {
@@ -87,6 +93,7 @@ Github site: http://github.com/razorjack/quicksand
}
};
+ // Position: relative situations
var $correctionParent = $sourceParent.offsetParent();
var correctionOffset = $correctionParent.offset();
if ($correctionParent.css('position') == 'relative') {
@@ -151,16 +158,11 @@ Github site: http://github.com/razorjack/quicksand
// If destination container has different height than source container
// the height can be animated, adjusting it to destination height
if (options.adjustHeight) {
- $sourceParent.animate({height: $dest.height()}, options.duration, options.easing, function (e) {
- $sourceParent.css('height', 'auto');
- });
+ $sourceParent.animate({height: $dest.height()}, options.duration, options.easing);
}
-
-
-
+
// Now it's time to do shuffling animation
- // First of all, we need to identify same elements within
-
+ // First of all, we need to identify same elements within source and destination collections
$source.each(function (i) {
var destElement = $collection.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']');
if (destElement.length) {
Oops, something went wrong.

0 comments on commit df38762

Please sign in to comment.