From 2c226feb9bd65eceef694e9da04477c468c4559b 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 Former-commit-id: c158242bfd8b4eefeee9c01ebfd68ee644f92c8a Former-commit-id: e77510f0929c662a52f9fe5f7443ea9c050568d0 --- 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();