mirror of
https://github.com/gosticks/react-table.git
synced 2026-06-28 17:10:01 +00:00
[useTable] Manage layout to honor column's show property (#1594)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user