Improving code editor display, and fixing IE9 rendering

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2011-03-25 21:43:55 -07:00
parent 036d4b2bb3
commit 02480f47d5
2 changed files with 11 additions and 2 deletions

View File

@@ -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 });
}
});
}

View File

@@ -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;
}