summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMarko Pušnik <marko.pusnik@guru.si>2015-09-30 18:55:33 +0200
committerMarko Pušnik <marko.pusnik@guru.si>2015-09-30 18:55:33 +0200
commitba6135a83273c625097fe7cdb59319a51acca31e (patch)
tree424688374b2e9a8cb23c83cda38c3bc5e3561b90 /js
parent2809b3fb4bfff39eb2eef28b1f681fbb6355d0f1 (diff)
responsiveness and scrolling fixed for all viewport sizes
Diffstat (limited to 'js')
-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);