Use default cursor on dummy scrollbars and make them 15px wide/tall

This commit is contained in:
Antonio Scandurra
2017-08-12 15:50:35 +02:00
parent 3e0d790050
commit 8cbfcf6e2b

View File

@@ -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'
}