mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
Update lib/client/editor.js
fixing after first showinng CodeMirror bug
This commit is contained in:
parent
f921e4845d
commit
c24cbab2cf
1 changed files with 7 additions and 2 deletions
|
|
@ -83,8 +83,13 @@ CloudCommander.Editor.CodeMirror = {
|
|||
"Esc": this.hide(this)
|
||||
}
|
||||
});
|
||||
console.log(document.getElementsByClassName('CodeMirror'));
|
||||
|
||||
/* fixing after first showinng CodeMirror bug */
|
||||
var lCodeMirror = this.getByClass('CodeMirror');
|
||||
if(lCodeMirror.length) {
|
||||
var lDiv = lCodeMirror[0].getElementsByTagName('div');
|
||||
if(lDiv.length)
|
||||
lDiv.style.cssText += lDiv.style.cssText + ';top:26px;left:57px';
|
||||
}
|
||||
lCloudEditor &&
|
||||
(lCloudEditor.className = '');
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue