fix readmorejs collapsing on scrolldirection change in mobile browsers

This commit is contained in:
Mario Vavti 2016-10-10 13:30:05 +02:00
parent af13e5fa4a
commit b2cc2e6765

View File

@ -102,7 +102,7 @@
var resizeBoxes = debounce(function() {
$('[data-readmore]').each(function() {
var current = $(this),
isExpanded = (current.attr('aria-expanded') === 'true');
isExpanded = (current.height() > current.data('collapsedHeight'));
setBoxHeights(current);