alalonde / angular-scrollable-table

A fixed header table directive for AngularJS
MIT License
68 stars 48 forks source link

Reinstate default table header width calculations #20

Closed alalonde closed 9 years ago

alalonde commented 10 years ago

Data-width attributes on table headers should not be required. If they are not there, the width should default to the browser-calculated width of the actual table <td> columns. This behavior will probably not be compatible with the 'resizable' functionality.

alalonde commented 10 years ago

Note that this functionality is still available on the bootstrap2 branch.

Gary-Li commented 10 years ago

Hi alalonde, I think the data-width is not required, table could calculate average width for every column when Table resizing.

alalonde commented 10 years ago

One of the primary original features that was lost with the introduction of the resizable functionality was the default browser-calculated width of each column, which results in an optimal usage of space for each column. The directive should not set width unless the user enables resizing AND actually resizes a column.