From fa9b189742e72229a9ae3301224f7e1ed0c8932b Mon Sep 17 00:00:00 2001 From: wanghaoo Date: Mon, 19 Nov 2018 23:36:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A1=A8=E5=A4=B4=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=85=BC=E5=AE=B9scroll=3D{x:'130%'?= =?UTF-8?q?}=E6=B8=85=E7=A9=BA):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/Table.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/Table.js b/build/Table.js index df3ff62..5d2aabf 100644 --- a/build/Table.js +++ b/build/Table.js @@ -293,6 +293,7 @@ var Table = function (_Component) { this.domWidthDiff = this.contentDomWidth - this.computeWidth; if (typeof setWidthParam == 'string' && setWidthParam.indexOf('%')) { this.contentWidth = this.contentWidth * parseInt(setWidthParam) / 100; + this.domWidthDiff = this.contentDomWidth - this.contentWidth; } } diff --git a/package.json b/package.json index 0cb7fd8..fbb4a0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bee-table", - "version": "1.5.3", + "version": "1.5.4", "description": "Table ui component for react", "keywords": [ "react",