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

This commit is contained in:
gargroh
2019-10-14 09:24:05 -06:00
committed by Tanner Linsley
parent 9c7b1e3313
commit 83ee60d715
+4 -3
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