diff --git a/src/js/06-code.js b/src/js/06-code.js index e47eeb48..ad6000b4 100644 --- a/src/js/06-code.js +++ b/src/js/06-code.js @@ -206,7 +206,7 @@ document.addEventListener('DOMContentLoaded', function () { var code = pre.querySelector('code') var showMore = pre.querySelector('div.show-more') - pre.style.maxHeight = pre.scrollHeight + 'px' + pre.style.maxHeight = '' pre.style.overflow = '' pre.style.cursor = '' code.style.webkitMaskImage = ''