From c158242bfd8b4eefeee9c01ebfd68ee644f92c8a Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Tue, 28 May 2013 18:32:07 -0400 Subject: [PATCH] fixes the motherfucking line wrapping height issue on code samples --- node/src/files/javascript/semantic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/files/javascript/semantic.js b/node/src/files/javascript/semantic.js index ac140e45e..1db7fe0b1 100755 --- a/node/src/files/javascript/semantic.js +++ b/node/src/files/javascript/semantic.js @@ -185,7 +185,6 @@ semantic.ready = function() { // initialize editor = ace.edit($code[0]); editorSession = editor.getSession(); - codeHeight = editor.session.getScreenLength() * (editor.renderer.lineHeight) + editor.renderer.scrollBar.getWidth() + padding; editor.setTheme('ace/theme/github'); editor.setShowPrintMargin(false); @@ -198,6 +197,7 @@ semantic.ready = function() { editorSession.setTabSize(2); editorSession.setUseSoftTabs(true); + codeHeight = editor.session.getScreenLength() * (editor.renderer.lineHeight) + editor.renderer.scrollBar.getWidth() + padding; $(this).height(codeHeight + 'px'); editor.resize();