Skip to content

Commit

Permalink
Merge pull request codemirror#13 from adobe/i-love-ie
Browse files Browse the repository at this point in the history
Fix blank top line in IE7/IE8 - reviewed by nj
  • Loading branch information
njx committed Jan 13, 2012
2 parents 0318f3f + ee630b7 commit 8e24286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ var CodeMirror = (function() {
if (!webkit) lineSpace.draggable = true;
if (options.tabindex != null) input.tabIndex = options.tabindex;
if (!options.gutter && !options.lineNumbers) gutter.style.display = "none";

// On IE, the selection div takes up space if it doesn't contain any spans. Work around with display="inline"
if (ie) selectionDiv.style.display = "inline";

// Check for OS X >= 10.7. If so, we need to force a width on the scrollbar, and
// make it overlap the content.
var osxMatch = /Mac OS X 10\D([\d+])\D/.exec(navigator.userAgent);
Expand Down

0 comments on commit 8e24286

Please sign in to comment.