diff --git a/readmore.js b/readmore.js index 4616e59..c0cf166 100644 --- a/readmore.js +++ b/readmore.js @@ -73,20 +73,15 @@ } function setBoxHeights(element) { - console.error('stacktrace'); var el = element.clone().css({ height: 'auto', width: element.width(), maxHeight: 'none', overflow: 'hidden' }).insertAfter(element), - console.log('element:'); - console.log(element.outerHeight()); - console.log(element); - console.log('el:'); - console.log(el.outerHeight()); - console.log(el); - expandedHeight = element.outerHeight(), + //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');