Thursday, June 18, 2015
Tuesday, June 16, 2015
Tuesday, June 9, 2015
calculate height of a truncated element in JS
http://stackoverflow.com/a/12752716/806777
...
// get current height
currentHeight = $box.height();
// get height with auto applied
autoHeight = $box.css('height', 'auto').height();
// reset height and revert to original if current and auto are equal
$box.css('height', currentHeight);
...
Subscribe to:
Posts (Atom)