Skip to content

Commit

Permalink
ver. 9.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Jul 17, 2018
1 parent 038fe87 commit ae10509
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-table",
"version": "9.3.0",
"version": "9.3.1",
"description": "table ui component for react",
"repository": "https://github.com/uxcore/uxcore-table.git",
"author": "zhouquan.yezq",
Expand Down
9 changes: 6 additions & 3 deletions src/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,12 @@ class Table extends React.Component {
const fixedColumnsWidth = this.headerFixed.getFixedColumnsWidth();
if (fixedColumnsWidth && fixedColumnsWidth !== this.fixedColumnsWidth) {
this.fixedColumnsWidth = fixedColumnsWidth;
this.mainTable.style.position = 'relative';
this.mainTable.style.left = `${leftFixedMaxWidth - fixedColumnsWidth}px`;
this.mainTable.style.width = `calc(100% + ${fixedColumnsWidth - leftFixedMaxWidth}px)`;
const offset = leftFixedMaxWidth - fixedColumnsWidth;
if (offset < 0) {
this.mainTable.style.position = 'relative';
this.mainTable.style.left = `${offset}px`;
this.mainTable.style.width = `calc(100% + ${-offset}px)`;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Tbody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Tbody extends React.Component {
if (props.leftFixedMaxWidth) {
style = {
...style,
overflowX: 'scroll',
overflowX: 'auto',
};
}
bodyWrapClassName = 'kuma-uxtable-body-fixed';
Expand Down

0 comments on commit ae10509

Please sign in to comment.