Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-05 16:30:28 +0300
committerRobin Appelman <icewind@owncloud.com>2015-12-05 16:30:28 +0300
commit05a1da27891a28c9c359795d6d056bf77cb0ed42 (patch)
tree51903910813c0ddd135db7dfddd8830aab7766de
parent8e19c689a1d61d18a0a454a590b8a4211c133f1f (diff)
Dont hide main navigation when showing a preview
-rw-r--r--css/style.css6
-rw-r--r--js/editor.js1
2 files changed, 6 insertions, 1 deletions
diff --git a/css/style.css b/css/style.css
index bc3111e..6401982 100644
--- a/css/style.css
+++ b/css/style.css
@@ -53,7 +53,7 @@
}
#editor_container.hasPreview {
- z-index: 3002;
+ z-index: 1750;
width: 100%;
height: 100%;
top: 0;
@@ -78,6 +78,10 @@
padding-top: 91px; /** main navigation + controls */
}
+#editor_overlay.hasPreview {
+ z-index: 1500; /** below main navigation */
+}
+
#preview_wrap {
box-sizing: border-box;
height: 100%;
diff --git a/js/editor.js b/js/editor.js
index ba9404b..752dc5f 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -303,6 +303,7 @@ var Files_Texteditor = {
_self.preview = container.find('#preview');
_self.preview.addClass(file.mime.replace('/','-'));
container.find('#editor_container').addClass('hasPreview');
+ container.find('#editor_overlay').addClass('hasPreview');
_self.previewPluginOnChange = _.debounce(_self.previewPlugins[file.mime].preview, 200);
var text = window.aceEditor.getSession().getValue();
_self.previewPluginOnChange(text, _self.preview);