mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
[useTable] Manage layout to honor column's show property (#1594)
This commit is contained in:
parent
9c7b1e3313
commit
83ee60d715
@ -447,9 +447,10 @@ function calculateHeaderWidths(headers, left = 0) {
|
||||
header.maxWidth
|
||||
)
|
||||
}
|
||||
|
||||
left += header.totalWidth
|
||||
sumTotalWidth += header.totalWidth
|
||||
if (header.isVisible) {
|
||||
left += header.totalWidth
|
||||
sumTotalWidth += header.totalWidth
|
||||
}
|
||||
})
|
||||
|
||||
return sumTotalWidth
|
||||
|
||||
Loading…
Reference in New Issue
Block a user