[useTable] Manage layout to honor column's show property (#1594)

This commit is contained in:
gargroh 2019-10-14 20:54:05 +05:30 committed by Tanner Linsley
parent 9c7b1e3313
commit 83ee60d715

View File

@ -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