Browse Source

fixes the motherfucking line wrapping height issue on code samples

pull/13/head
Jack Lukic 11 years ago
parent
commit
c158242bfd
1 changed files with 1 additions and 1 deletions
  1. 2
      node/src/files/javascript/semantic.js

2
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();

Loading…
Cancel
Save