Skip to content

Commit

Permalink
fix fix typo in isTableLayoutFixed and no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 18, 2019
1 parent 6f93189 commit 34b1309
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
DefaultValueType,
ScrollPosition,
Expander,
Key,
} from './interface';

export interface TableProps<ValueType>
Expand Down Expand Up @@ -295,7 +294,7 @@ class Table<ValueType> extends React.Component<TableProps<ValueType>, TableState
// if scroll.x is number/px/% width value, we should fixed table layout
// to avoid long word layout broken issue
if (scroll.x && scroll.x !== true && scroll.x !== 'max-content') {
return false;
return true;
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/Table.fixedColumns.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Table.fixedColumns renders correctly 1`] = `
<div
class="rc-table rc-table-scroll-position-left"
class="rc-table rc-table-scroll-position-left rc-table-layout-fixed"
>
<div
class="rc-table-content"
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/Table.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ exports[`Table rowKey renders tableLayout 1`] = `

exports[`Table scroll renders scroll.x is a number 1`] = `
<div
class="rc-table rc-table-scroll-position-left"
class="rc-table rc-table-scroll-position-left rc-table-layout-fixed"
>
<div
class="rc-table-content"
Expand Down

0 comments on commit 34b1309

Please sign in to comment.