From b2cc2e6765a9044a20c507860608c16ab8e30442 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 10 Oct 2016 13:30:05 +0200 Subject: fix readmorejs collapsing on scrolldirection change in mobile browsers --- library/readmore.js/readmore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library') diff --git a/library/readmore.js/readmore.js b/library/readmore.js/readmore.js index 51222ced0..8b215dcb4 100644 --- a/library/readmore.js/readmore.js +++ b/library/readmore.js/readmore.js @@ -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); -- cgit v1.2.3