From 4680b9f9e559fc60b5b8d4bc6c9d43f99308916c Mon Sep 17 00:00:00 2001 From: kimth Date: Wed, 25 Jul 2012 16:11:21 -0400 Subject: [PATCH] Fix cursor/text mismatch in Code/External-Response styling --- lms/static/css/codemirror.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lms/static/css/codemirror.css b/lms/static/css/codemirror.css index 2d79f4aa79..c28dfae339 100644 --- a/lms/static/css/codemirror.css +++ b/lms/static/css/codemirror.css @@ -5,7 +5,7 @@ .CodeMirror-scroll { overflow: auto; - height: 300px; + height: 480px; /* This is needed to prevent an IE[67] bug where the scrolled content is visible outside of the scrolling box. */ position: relative; @@ -38,12 +38,18 @@ border-radius: 0; border-width: 0; margin: 0; padding: 0; background: transparent; font-family: inherit; - font-size: inherit; + font-size: 16px; padding: 0; margin: 0; white-space: pre; + line-height: 22px; word-wrap: normal; } +/* THK: This is to prevent global 'span' from defining .CodeMirror style */ +.CodeMirror pre span { + font: inherit; +} + .CodeMirror-wrap pre { word-wrap: break-word; white-space: pre-wrap;