From 8cbfcf6e2b6f18026818517fbb445e5080fe54d5 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sat, 12 Aug 2017 15:50:35 +0200 Subject: [PATCH] Use default cursor on dummy scrollbars and make them 15px wide/tall --- src/text-editor-component.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 970ee29c1..0b1570a24 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -2851,20 +2851,22 @@ class DummyScrollbarComponent { outerStyle.bottom = 0 outerStyle.left = 0 outerStyle.right = right + 'px' - outerStyle.height = '20px' + outerStyle.height = '15px' outerStyle.overflowY = 'hidden' outerStyle.overflowX = this.props.forceScrollbarVisible ? 'scroll' : 'auto' - innerStyle.height = '20px' + outerStyle.cursor = 'default' + innerStyle.height = '15px' innerStyle.width = (this.props.scrollWidth || 0) + 'px' } else { let bottom = (this.props.horizontalScrollbarHeight || 0) outerStyle.right = 0 outerStyle.top = 0 outerStyle.bottom = bottom + 'px' - outerStyle.width = '20px' + outerStyle.width = '15px' outerStyle.overflowX = 'hidden' outerStyle.overflowY = this.props.forceScrollbarVisible ? 'scroll' : 'auto' - innerStyle.width = '20px' + outerStyle.cursor = 'default' + innerStyle.width = '15px' innerStyle.height = (this.props.scrollHeight || 0) + 'px' }