1. Ebrahim Mohammadi
  2. codemirror

Commits

Marijn Haverbeke  committed ff9361e

Make sure gutter does not confuse line wrapping measurements

  • Participants
  • Parent commits 8fb3790
  • Branches default

Comments (0)

Files changed (1)

File lib/codemirror.js

View file
 
       if (!updates.length) return;
       var th = textHeight();
-      lineDiv.style.display = "none";
+      lineDiv.style.display = gutter.style.display = "none";
       // If more than 30% of the screen needs update, just do a full
       // redraw (which is quicker than patching)
       if (changedLines > (visible.to - visible.from) * .3)
           lineSpace.style.width = code.style.width = "";
         }
       }
+      gutter.style.display = "";
       if (different || gutterDirty) updateGutter();
-
       updateCursor();
     }