... // 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); ...
No comments:
Post a Comment