another fix to readmore.js and update patch file
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
maxHeight: 'none',
|
||||
overflow: 'hidden'
|
||||
}).insertAfter(element),
|
||||
expandedHeight = el.outerHeight(),
|
||||
expandedHeight = 100 + '%',
|
||||
cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\d\.]/g, ''), 10),
|
||||
defaultHeight = element.data('defaultHeight');
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
collapsedHeight = $element.data('collapsedHeight');
|
||||
|
||||
if ($element.height() <= collapsedHeight) {
|
||||
newHeight = 100 + '%';
|
||||
newHeight = $element.data('expandedHeight');
|
||||
newLink = 'lessLink';
|
||||
expanded = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user