Table Header Width Bug, When There's Row Selection Configuration
See original GitHub issueI think there’s complains about Table Header and Table Body column mismatch. But I want to dig a little bit deeper, maybe could help you find the root cause.
Test Version v3.1.0, with all the css files there.
OK, so this is the first one. I have the row_selection configurations, something like these:
selectRow = {{
mode: 'radio',
selected: [this.activeParameterKey],
}}
I also set some columns’ width, to test the alignment problem, I delete unnecessary fields.
<TableHeaderColumn width="300">Key</TableHeaderColumn>
<TableHeaderColumn width="150">Value Type</TableHeaderColumn>
<TableHeaderColumn width="50">Example Values</TableHeaderColumn>
<TableHeaderColumn>Technical Description</TableHeaderColumn>
<TableHeaderColumn>Required</TableHeaderColumn>
<TableHeaderColumn>Server Side</TableHeaderColumn>
<TableHeaderColumn width="200">Heimdall</TableHeaderColumn>
<TableHeaderColumn>Beacon Key</TableHeaderColumn>
<TableHeaderColumn>Event Key</TableHeaderColumn>
<TableHeaderColumn width="200">Value Unit</TableHeaderColumn>
The Results are showing below:
So here’s the problem. For the
It looks so wired to me, but it looks like a column takes itself setting of width, but if the column after it has a width setting, it will overwrite current column width setting. Same things happens to “Heimdall” column, both “Heimdall” and “Server Side” column are setting to 200. Also “Value Unit”.
But the width in Table Body is all correct. Do you think this could be fixed soon? Or maybe I could look into the code.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
I’ll fix it asap, sorry for lately reply and fixing.
@hnandarusdy, got it, but as I know, the width of
TableHeaderColumn
are support integer, string or string withpx
.