Skip to content

Commit

Permalink
UX-2181: JS error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
motching committed Jul 27, 2020
1 parent f010f3c commit ab4e358
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readmore.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@
overflow: 'hidden'
}).insertAfter(element),
//expandedHeight = element.outerHeight(),
window.attila_1 = element.outerHeight(),
expandedHeight = 800,
cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\d\.]/g, ''), 10),
defaultHeight = element.data('defaultHeight');

window.attila_1 = element.outerHeight(),
window.attila_2 = el.outerHeight(),

el.remove();

var collapsedHeight = cssMaxHeight || element.data('collapsedHeight') || defaultHeight;
Expand Down

0 comments on commit ab4e358

Please sign in to comment.