aboutsummaryrefslogtreecommitdiffstats
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:43:29 +0200
commit717a532c09436fd8386fa2a652a1792d0f445cd7 (patch)
treea3e2d3c5223a2ac94f0970d8f0891635dd111196
parent49fd53ee677fbf58dd427b0fcce475a1e73753fa (diff)
downloadvolse-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.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);