From f5c62f70e824e6a57e836e286ad04147ba2fa5f2 Mon Sep 17 00:00:00 2001 From: Boris Thuy Date: Fri, 3 Feb 2017 03:19:22 +0100 Subject: [PATCH] Added box-sizing to the CodeMirror class The editor view in Side By Side does not wrap lines properly (ie. they sometimes overflow beneath the live preview). Adding box-sizing property seems to fix this issue. --- src/css/simplemde.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/css/simplemde.css b/src/css/simplemde.css index fb0e4c7..e749c08 100644 --- a/src/css/simplemde.css +++ b/src/css/simplemde.css @@ -1,4 +1,5 @@ .CodeMirror { + box-sizing: border-box; height: auto; min-height: 300px; border: 1px solid #ddd; @@ -325,4 +326,4 @@ .CodeMirror .CodeMirror-placeholder { opacity: .5; -} \ No newline at end of file +}