mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Improving code editor display, and fixing IE9 rendering
--HG-- branch : dev
This commit is contained in:
@@ -382,7 +382,7 @@
|
||||
// code mirror seems to work only if the textarea is visible
|
||||
target.find('textarea:visible').each(function () {
|
||||
if ($(this).next('.CodeMirror').length == 0) {
|
||||
CodeMirror.fromTextArea(this, { mode: "razor", tabMode: "indent", height: "100%", readOnly: true });
|
||||
CodeMirror.fromTextArea(this, { mode: "razor", tabMode: "indent", readOnly: true, lineNumbers: true });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -90,9 +90,14 @@ button.create-template, button.create-template:hover, background-image:hover {
|
||||
}
|
||||
|
||||
#shape-tracing-container .shape-tracing-meta-content {
|
||||
padding:0 0 30px 30px;
|
||||
padding:0 0 30px 0;
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
#shape-tracing-container .model, #shape-tracing-container .shape {
|
||||
padding-left:30px;
|
||||
}
|
||||
|
||||
#shape-tracing-toolbar {
|
||||
color:#333;
|
||||
background:rgba(236, 241, 242, 1.0);
|
||||
@@ -329,3 +334,7 @@ button.create-template, button.create-template:hover, background-image:hover {
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.CodeMirror {
|
||||
height:auto;
|
||||
overflow:hidden !important;
|
||||
}
|
||||
Reference in New Issue
Block a user