diff options
-rw-r--r-- | css/style.css | 28 | ||||
-rw-r--r-- | js/editor.js | 4 |
2 files changed, 17 insertions, 15 deletions
diff --git a/css/style.css b/css/style.css index 6bafbb7..7e6516e 100644 --- a/css/style.css +++ b/css/style.css @@ -7,15 +7,26 @@ background-color: white; height: 44px; border-bottom: 2px solid #eee; + position: absolute; + top: 0; + width: 100%; + z-index: 1000; +} +#editor div.ace_gutter, #editor div.ace_scroller { + margin-top: 46px; } #editor { - position: relative; display: block; + height: 100%; + width: 100%; + overflow: hidden; +} + +#editor_wrap { + position: absolute; top: 0; - left: 0; - z-index: 20; height: 100%; width: 100%; overflow: hidden; @@ -70,20 +81,11 @@ background-color: #ddd; } -#editorcontrols > button, #editorsearchval { +#editorcontrols > button { height: 30px !important; margin-top: 7px; } -#nextsearchbtn { - padding-top: 5px !important; - margin-top: 6px !important; -} - -.viewer-mode #app-navigation+#app-content #controls { - width: initial: !important; -} - #editor_controls small.filename { float: left; color: #555; diff --git a/js/editor.js b/js/editor.js index 6d00412..af0ad9a 100644 --- a/js/editor.js +++ b/js/editor.js @@ -248,7 +248,7 @@ var Files_Texteditor = { container.html( '<div id="editor_overlay"></div>' +'<div id="editor_container" class="icon-loading">' - +'<div id="editor"></div></div>'); + +'<div id="editor_wrap"><div id="editor"></div></div></div>'); $('#app-content').append(container); // Get the file data @@ -287,7 +287,7 @@ var Files_Texteditor = { +'</small>' +'<button id="editor_close" class="icon-close svg"></button>'; var controlBar = $('<div id="editor_controls"></div>').html(html); - $('#'+this.editor).before(controlBar); + $('#editor_wrap').before(controlBar); this.bindControlBar(); }, |