Permalink
Browse files

Disable line measuring subdivision hack (#990) on IE7

It completely screws up bounding rects when this is enabled.
  • Loading branch information...
1 parent fcbe3fd commit 9dd627541c8a006ec98acb6340f88c8aaa5819b2 @marijnh marijnh committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/codemirror.js
View
2 lib/codemirror.js
@@ -885,7 +885,7 @@ window.CodeMirror = (function() {
// doesn't work when wrapping is on, but in that case the
// situation is slightly better, since IE does cache line-wrapping
// information and only recomputes per-line.
- if (ie && !cm.options.lineWrapping && pre.childNodes.length > 100) {
+ if (ie && !ie_lt8 && !cm.options.lineWrapping && pre.childNodes.length > 100) {
var fragment = document.createDocumentFragment();
var chunk = 10, n = pre.childNodes.length;
for (var i = 0, chunks = Math.ceil(n / chunk); i < chunks; ++i) {

0 comments on commit 9dd6275

Please sign in to comment.