aboutsummaryrefslogtreecommitdiffstats
path: root/library/readmore.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-10-10 13:30:05 +0200
committerMario Vavti <mario@mariovavti.com>2016-10-10 13:30:05 +0200
commitb2cc2e6765a9044a20c507860608c16ab8e30442 (patch)
treec4bec0abd8fad8266070ac526caf72a8050f31ec /library/readmore.js
parentaf13e5fa4a88691dc1d7a7474890b381fbb44aab (diff)
downloadvolse-hubzilla-b2cc2e6765a9044a20c507860608c16ab8e30442.tar.gz
volse-hubzilla-b2cc2e6765a9044a20c507860608c16ab8e30442.tar.bz2
volse-hubzilla-b2cc2e6765a9044a20c507860608c16ab8e30442.zip
fix readmorejs collapsing on scrolldirection change in mobile browsers
Diffstat (limited to 'library/readmore.js')
-rw-r--r--library/readmore.js/readmore.js2
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);