From 3c015bb0a9716ac6a3da7c9d98ae54e374ada96a Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Wed, 28 Mar 2012 00:56:44 -0700 Subject: [PATCH] Another codemirror fix. --- static/js/CodeMirror/codemirror.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/CodeMirror/codemirror.js b/static/js/CodeMirror/codemirror.js index 261070d6af..f517176c46 100644 --- a/static/js/CodeMirror/codemirror.js +++ b/static/js/CodeMirror/codemirror.js @@ -753,6 +753,8 @@ var CodeMirror = (function() { if (line.widgetFunction) { var guess = line.widgetFunction.size(line.text).height / textHeight(); if (guess != line.height) updateLineHeight(line, guess); + } else if (line.height != 1) { + updateLineHeight(line, 1); } }); if (recomputeMaxLength) {