rsuite-table
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -0,1 +1,7 @@ | ||
# 3.4.1 | ||
> January 17, 2019 | ||
- Fix scrollbar position | ||
# 3.4.0 | ||
@@ -2,0 +8,0 @@ |
@@ -190,3 +190,3 @@ 'use strict'; | ||
var max = scrollLength && length ? length - length / scrollLength * length : 0; | ||
var max = scrollLength && length ? length - Math.max(length / scrollLength * length, _constants.SCROLLBAR_MIN_WIDTH + 2) : 0; | ||
var styles = {}; | ||
@@ -193,0 +193,0 @@ |
{ | ||
"name": "rsuite-table", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "A React table component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -113,3 +113,6 @@ // @flow | ||
const { vertical, length, scrollLength } = this.props; | ||
const max = scrollLength && length ? length - (length / scrollLength) * length : 0; | ||
const max = | ||
scrollLength && length | ||
? length - Math.max((length / scrollLength) * length, SCROLLBAR_MIN_WIDTH + 2) | ||
: 0; | ||
const styles = {}; | ||
@@ -116,0 +119,0 @@ |
200498
4332