Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 2007b3c

Browse files
committed
Size gutters properly when no scrollbar is present
Issue #2368
1 parent 4f385e6 commit 2007b3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@
649649

650650
function setDocumentHeight(cm, measure) {
651651
cm.display.sizer.style.minHeight = cm.display.heightForcer.style.top = measure.docHeight + "px";
652-
cm.display.gutters.style.height = Math.max(measure.docHeight, measure.clientHeight) + "px";
652+
cm.display.gutters.style.height = Math.max(measure.docHeight, measure.clientHeight - scrollerCutOff) + "px";
653653
}
654654

655655
// Read the actual heights of the rendered lines, and update their

0 commit comments

Comments
 (0)