Skip to content

Commit 54e4fac

Browse files
committed
feat: reset demo
1 parent 3019a32 commit 54e4fac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/examples/fixedColumnsAndHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const columns = [
6161

6262
const Demo = () => (
6363
<React.StrictMode>
64-
<Table columns={columns as any} data={[{ key: 1 }]} scroll={{ x: 2000 }} sticky />
64+
<Table columns={columns as any} data={[]} scroll={{ x: 'max-content' }} sticky />
6565
</React.StrictMode>
6666
);
6767

src/Body/ExpandedRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function ExpandedRow(props: ExpandedRowProps) {
4545
contentNode = (
4646
<div
4747
style={{
48-
width: componentWidth - offsetWidth - (fixHeader && !isEmpty ? scrollbarSize : 0),
48+
width: componentWidth - (fixHeader && !isEmpty ? scrollbarSize : 0),
4949
position: 'sticky',
5050
left: 0,
5151
overflow: 'hidden',

0 commit comments

Comments
 (0)