diff --git a/src/MLTable/MLTable.js b/src/MLTable/MLTable.js index 7b25aea0c..d68449d02 100644 --- a/src/MLTable/MLTable.js +++ b/src/MLTable/MLTable.js @@ -288,6 +288,7 @@ class MLTable extends React.Component { // onChange={(e) => this.handleEmbeddedTableChange(e, restructuredColumn, record)} /> ) + restructuredColumn.width = (this.state.columnExpandedStates[originalColumn.dataIndex] ? originalColumn.expandedWidth : originalColumn.width) } return restructuredColumn }) diff --git a/src/__snapshots__/11-Table.stories.storyshot b/src/__snapshots__/11-Table.stories.storyshot index 42ec888dd..b535dc7bf 100644 --- a/src/__snapshots__/11-Table.stories.storyshot +++ b/src/__snapshots__/11-Table.stories.storyshot @@ -318,7 +318,7 @@ exports[`Storyshots Data Display/MLTable Embedded Tables 1`] = ` class="ant-spin-container" >
- Employee Number - | -- |
---|---|
- Department Number - | -- |
- Department Name - | -- |
- Job Titles - | -- |
+
+
+
+ Employee Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Department Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Department Name
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Job Titles
+
+
+
+
+ |
+ |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ 12315 + | ++ d008 + | ++ Research + | +
+
+
+
+
+
+
+
+
+
+
+
+
+
|
+
- Salary - | -- | |
---|---|---|
+
+
+
+ Salary
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ From
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ To
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ 56926 + | ++ 1995-01-19 + | ++ 1996-01-19 + | +
+ 51184 + | ++ 1989-01-20 + | ++ 1990-01-20 + | +
+ 60014 + | ++ 1999-01-18 + | ++ 2000-01-18 + | +
+ 47619 + | ++ 1988-01-21 + | ++ 1989-01-20 + | +
+ 58153 + | ++ 1996-01-19 + | ++ 1997-01-18 + | +
+ 51837 + | ++ 1990-01-20 + | ++ 1991-01-20 + | +
+ 56264 + | ++ 1993-01-19 + | ++ 1994-01-19 + | +
+ 59706 + | ++ 1998-01-18 + | ++ 1999-01-18 + | +
+ 62624 + | ++ 2001-01-17 + | ++ 2002-01-17 + | +
+ 63223 + | ++ 2002-01-17 + | ++ 9999-01-01 + | +
- Employee Number - | -- |
---|---|
- Department Number - | -- |
- Department Name - | -- |
- Job Titles - | -- |
+
+
+
+ Employee Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Department Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Department Name
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Job Titles
+
+
+
+
+ |
+ |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ 281328 + | ++ d008 + | ++ Research + | +
+
+
+
+
+
+
+
+
+
+
+
+
+
|
+
- Salary - | -- | |
---|---|---|
+
+
+
+ Salary
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ From
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ To
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ 56926 + | ++ 1995-01-19 + | ++ 1996-01-19 + | +
+ 51184 + | ++ 1989-01-20 + | ++ 1990-01-20 + | +
+ 60014 + | ++ 1999-01-18 + | ++ 2000-01-18 + | +
+ 47619 + | ++ 1988-01-21 + | ++ 1989-01-20 + | +
+ 58153 + | ++ 1996-01-19 + | ++ 1997-01-18 + | +
+ 51837 + | ++ 1990-01-20 + | ++ 1991-01-20 + | +
+ 56264 + | ++ 1993-01-19 + | ++ 1994-01-19 + | +
+ 59706 + | ++ 1998-01-18 + | ++ 1999-01-18 + | +
+ 62624 + | ++ 2001-01-17 + | ++ 2002-01-17 + | +
+ 63223 + | ++ 2002-01-17 + | ++ 9999-01-01 + | +