Permalink
Browse files

Clear explicit height after animation to prevent cramping the style i…

…f something (browser resize) changes the flow of the page
  • Loading branch information...
1 parent fcb668a commit ee6d33f2daef416de2f0f64fe012ad626acb07d4 @cjc committed Nov 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 jquery.quicksand.js
View
@@ -83,6 +83,9 @@ Github site: http://github.com/razorjack/quicksand
if (adjustHeightOnCallback) {
$sourceParent.css('height', destHeight);
+ } else {
+ // if no specific height supplied for oncallback, clear the height from $sourceParent (to prevent restricting the height in responsive pages)
+ $sourceParent.css('height','');
}
options.enhancement($sourceParent); // Perform custom visual enhancements on a newly replaced collection
if (typeof callbackFunction == 'function') {

0 comments on commit ee6d33f

Please sign in to comment.