If only you only enable hideHead for some of the columns of the MCW widget, the table layout will be broken, since the hidden class on the <th> removes that <th> completely. Example:
The table headers are aligned with the wrong columns, since hideHead is enabled for the first two columns (checkbox and name), but not for the other 3 columns. Since the CSS class hidden is added onto the <th> of these columns, those header table cells are removed completely and thus misaligned.
This PR changes that, so that the hidden class is only added to the child <div> and not the <th> table header cell itself. Additionally it checks whether all column headers are set to hideHead and then renders no <thead> whatsoever.
If only you only enable
hideHead
for some of the columns of the MCW widget, the table layout will be broken, since thehidden
class on the<th>
removes that<th>
completely. Example:The table headers are aligned with the wrong columns, since
hideHead
is enabled for the first two columns (checkbox and name), but not for the other 3 columns. Since the CSS classhidden
is added onto the<th>
of these columns, those header table cells are removed completely and thus misaligned.This PR changes that, so that the
hidden
class is only added to the child<div>
and not the<th>
table header cell itself. Additionally it checks whether all column headers are set tohideHead
and then renders no<thead>
whatsoever.