fix readmorejs collapsing on scrolldirection change in mobile browsers
This commit is contained in:
parent
af13e5fa4a
commit
b2cc2e6765
@ -102,7 +102,7 @@
|
|||||||
var resizeBoxes = debounce(function() {
|
var resizeBoxes = debounce(function() {
|
||||||
$('[data-readmore]').each(function() {
|
$('[data-readmore]').each(function() {
|
||||||
var current = $(this),
|
var current = $(this),
|
||||||
isExpanded = (current.attr('aria-expanded') === 'true');
|
isExpanded = (current.height() > current.data('collapsedHeight'));
|
||||||
|
|
||||||
setBoxHeights(current);
|
setBoxHeights(current);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user