Skip to content

Commit 52ea44c

Browse files
hikerpigRokt33r
authored andcommitted
Remove overcomplicated solution for scrollbar styling.
1 parent 132d043 commit 52ea44c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

browser/components/MarkdownPreview.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const CSS_FILES = [
5050
* @param {String} opts.theme
5151
* @param {Boolean} [opts.lineNumber] Should show line number
5252
* @param {Boolean} [opts.scrollPastEnd]
53-
* @param {Boolean} [opts.optimizeOverflowScroll] Should tweak body style to optimize overflow scrollbar display
5453
* @param {Boolean} [opts.allowCustomCSS] Should add custom css
5554
* @param {String} [opts.customCSS] Will be added to bottom, only if `opts.allowCustomCSS` is truthy
5655
* @returns {String}
@@ -62,7 +61,6 @@ function buildStyle (opts) {
6261
codeBlockFontFamily,
6362
lineNumber,
6463
scrollPastEnd,
65-
optimizeOverflowScroll,
6664
theme,
6765
allowCustomCSS,
6866
customCSS
@@ -107,7 +105,6 @@ body {
107105
box-sizing: border-box;
108106
`
109107
: ''}
110-
${optimizeOverflowScroll ? 'height: 100%;' : ''}
111108
}
112109
@media print {
113110
body {
@@ -687,7 +684,6 @@ export default class MarkdownPreview extends React.Component {
687684
codeBlockFontFamily,
688685
lineNumber,
689686
scrollPastEnd,
690-
optimizeOverflowScroll: true,
691687
theme,
692688
allowCustomCSS,
693689
customCSS

0 commit comments

Comments
 (0)