Skip to content

Commit 9dd6275

Browse files
committed
Disable line measuring subdivision hack (#990) on IE7
It completely screws up bounding rects when this is enabled.
1 parent fcbe3fd commit 9dd6275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ window.CodeMirror = (function() {
885885
// doesn't work when wrapping is on, but in that case the
886886
// situation is slightly better, since IE does cache line-wrapping
887887
// information and only recomputes per-line.
888-
if (ie && !cm.options.lineWrapping && pre.childNodes.length > 100) {
888+
if (ie && !ie_lt8 && !cm.options.lineWrapping && pre.childNodes.length > 100) {
889889
var fragment = document.createDocumentFragment();
890890
var chunk = 10, n = pre.childNodes.length;
891891
for (var i = 0, chunks = Math.ceil(n / chunk); i < chunks; ++i) {

0 commit comments

Comments
 (0)