Skip to content

Commit

Permalink
Increase size of scrollbar-hack gap
Browse files Browse the repository at this point in the history
Issue #6258
  • Loading branch information
marijnh committed May 4, 2020
1 parent a9774d9 commit 632f30b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}

.CodeMirror-scroll {
overflow: scroll !important; /* Things will break if this is overridden */
/* 30px is the magic margin used to hide the element's real scrollbars */
/* 50px is the magic margin used to hide the element's real scrollbars */
/* See overflow: hidden in .CodeMirror */
margin-bottom: -30px; margin-right: -30px;
padding-bottom: 30px;
margin-bottom: -50px; margin-right: -50px;
padding-bottom: 50px;
height: 100%;
outline: none; /* Prevent dragging from highlighting the element */
position: relative;
}
.CodeMirror-sizer {
position: relative;
border-right: 30px solid transparent;
border-right: 50px solid transparent;
}

/* The fake, visible scrollbars. Used to force redraw during scrolling
Expand Down Expand Up @@ -212,7 +212,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
height: 100%;
display: inline-block;
vertical-align: top;
margin-bottom: -30px;
margin-bottom: -50px;
}
.CodeMirror-gutter-wrapper {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/util/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function indexOf(array, elt) {
}

// Number of pixels added to scroller and sizer to hide scrollbar
export let scrollerGap = 30
export let scrollerGap = 50

// Returned or thrown by various protocols to signal 'I'm not
// handling this'.
Expand Down

0 comments on commit 632f30b

Please sign in to comment.