@beisen/beisen-scroll-bar
Advanced tools
Comparing version 0.0.1-58 to 0.0.1-59
@@ -157,3 +157,3 @@ 'use strict'; | ||
realSize: this.state.realHeight, | ||
containerSize: this.props.style.height && props.style.height.split('%').length <= 1 ? parseInt(this.props.style.height.split('px')[0]) : this.state.containerHeight, | ||
containerSize: this.props.style.height && this.props.style.height.split('%').length <= 1 ? parseInt(this.props.style.height.split('px')[0]) : this.state.containerHeight, | ||
position: this.state.topPosition, | ||
@@ -171,3 +171,3 @@ onMove: this.handleScrollbarMove.bind(this), | ||
realSize: this.state.realWidth, | ||
containerSize: this.props.style.width && props.style.width.split('%').length <= 1 ? parseInt(this.props.style.width.split('px')[0]) : this.state.containerWidth, | ||
containerSize: this.props.style.width && this.props.style.width.split('%').length <= 1 ? parseInt(this.props.style.width.split('px')[0]) : this.state.containerWidth, | ||
position: this.state.leftPosition, | ||
@@ -174,0 +174,0 @@ onMove: this.handleScrollbarMove.bind(this), |
{ | ||
"name": "@beisen/beisen-scroll-bar", | ||
"version": "0.0.1-58", | ||
"version": "0.0.1-59", | ||
"description": "beisen-scroll-bar", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -106,3 +106,3 @@ import React from 'react'; | ||
realSize={this.state.realHeight} | ||
containerSize={this.props.style.height&&props.style.height.split('%').length <= 1 ? parseInt(this.props.style.height.split('px')[0]) : this.state.containerHeight} | ||
containerSize={this.props.style.height&&this.props.style.height.split('%').length <= 1 ? parseInt(this.props.style.height.split('px')[0]) : this.state.containerHeight} | ||
position={this.state.topPosition} | ||
@@ -123,3 +123,3 @@ onMove={this.handleScrollbarMove.bind(this)} | ||
realSize={this.state.realWidth} | ||
containerSize={this.props.style.width&&props.style.width.split('%').length <= 1 ? parseInt(this.props.style.width.split('px')[0]) : this.state.containerWidth} | ||
containerSize={this.props.style.width&&this.props.style.width.split('%').length <= 1 ? parseInt(this.props.style.width.split('px')[0]) : this.state.containerWidth} | ||
position={this.state.leftPosition} | ||
@@ -126,0 +126,0 @@ onMove={this.handleScrollbarMove.bind(this)} |
Sorry, the diff of this file is too big to display
1612764