summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/editor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/codeq/editor.js b/js/codeq/editor.js
index e7d15f9..f84bd05 100644
--- a/js/codeq/editor.js
+++ b/js/codeq/editor.js
@@ -17,10 +17,12 @@ codeq.makeEditor = function (elt, options) {
};
editor = CodeMirror(elt, options),
- statusBar.className = 'editor-statusbar';
+ //since addPanel brakes CodeMirrot responsiveness no mather what, we manually added block-statusbar located at the bottom of editor block
+ //statusBar.className = 'editor-statusbar';
+ statusBar = statusBar = $(elt).siblings(".block-statusbar")[0];
updateStatusBar({line: 0, ch: 0});
- editor.addPanel(statusBar, {position: 'bottom'});
+ //editor.addPanel(statusBar, {position: 'bottom'});
editor.on('cursorActivity', function (instance) {
var pos = instance.getDoc().getCursor();
updateStatusBar(pos);