Team:ETH Zurich/tpl/read-more
From 2014.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
$p = $el.parent(); | $p = $el.parent(); | ||
$up = $p.parent(); | $up = $p.parent(); | ||
- | $ps = $up.find(" | + | $ps = $up.find("not('.read-more')"); |
- | $ | + | $ps.each(function() { |
- | totalHeight += $ | + | totalHeight += $ps.outerHeight(); |
}); | }); | ||
Line 19: | Line 19: | ||
.css({ | .css({ | ||
// Set height to prevent instant jumpdown when max height is removed | // Set height to prevent instant jumpdown when max height is removed | ||
- | "height": $ | + | "height": $ps.height(), |
"max-height": 999999 | "max-height": 999999 | ||
}) | }) |
Revision as of 12:56, 15 August 2014