From 02480f47d5a14fc75105fedaee8234dbd46f3b7c Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Fri, 25 Mar 2011 21:43:55 -0700 Subject: [PATCH] Improving code editor display, and fixing IE9 rendering --HG-- branch : dev --- .../Scripts/orchard-designertools-shapetracing.js | 2 +- .../Styles/orchard-designertools-shapetracing.css | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js b/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js index 04eaccf13..d1fb8874a 100644 --- a/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js +++ b/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js @@ -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 }); } }); } diff --git a/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/orchard-designertools-shapetracing.css b/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/orchard-designertools-shapetracing.css index 069c4bcf4..ada0b7484 100644 --- a/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/orchard-designertools-shapetracing.css +++ b/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/orchard-designertools-shapetracing.css @@ -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; +} \ No newline at end of file