Skip to content

Commit

Permalink
Unset sourceParent height in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
cjc committed Nov 18, 2012
1 parent 1f29f1b commit 89eef48
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions jquery.quicksand.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -81,12 +81,8 @@ Github site: http://github.com/razorjack/quicksand
$sourceParent.prepend($dest.contents()); $sourceParent.prepend($dest.contents());
$toDelete.remove(); $toDelete.remove();


if (adjustHeightOnCallback) { // clear the height from $sourceParent (to prevent restricting the height in responsive pages)
$sourceParent.css('height', destHeight); $sourceParent.css('height','');
} 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 options.enhancement($sourceParent); // Perform custom visual enhancements on a newly replaced collection
if (typeof callbackFunction == 'function') { if (typeof callbackFunction == 'function') {
callbackFunction.call(this); callbackFunction.call(this);
Expand Down

0 comments on commit 89eef48

Please sign in to comment.