diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-10-10 13:30:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-10-10 13:43:29 +0200 |
commit | 717a532c09436fd8386fa2a652a1792d0f445cd7 (patch) | |
tree | a3e2d3c5223a2ac94f0970d8f0891635dd111196 | |
parent | 49fd53ee677fbf58dd427b0fcce475a1e73753fa (diff) | |
download | volse-hubzilla-717a532c09436fd8386fa2a652a1792d0f445cd7.tar.gz volse-hubzilla-717a532c09436fd8386fa2a652a1792d0f445cd7.tar.bz2 volse-hubzilla-717a532c09436fd8386fa2a652a1792d0f445cd7.zip |
fix readmorejs collapsing on scrolldirection change in mobile browsers
-rw-r--r-- | library/readmore.js/readmore.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |