From 68663dfead31c701601c1436822850451f886fd2 Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Thu, 28 May 2020 11:39:03 -0700 Subject: [PATCH] Chrome lazy loading broke this lib --- readmore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readmore.js b/readmore.js index 3759679..e3641bc 100644 --- a/readmore.js +++ b/readmore.js @@ -79,7 +79,7 @@ maxHeight: 'none', overflow: 'hidden' }).insertAfter(element), - expandedHeight = el.outerHeight(), + expandedHeight = element.outerHeight(), cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\d\.]/g, ''), 10), defaultHeight = element.data('defaultHeight');