PicNet / tablefilter

This js project adds column filtering capabilities to a regular html <table> by adding a row to the <thead> section of a table and adding filters that allows real time filtering of tabular data.
http://web.archive.org/web/20150124160820/http://www.picnet.com.au/picnet-table-filter.html
27 stars 9 forks source link

Issue with Column Widths #58

Open getcatalyzed opened 12 years ago

getcatalyzed commented 12 years ago

It seems that the tablefilter scripts sets a fixed minimum width to the columns. Is there any way to turn this off? My table populates dynamically, and with table-layout set to auto the column widths automatically adjust to fit the content. It seems like tablefilter sets the table-layout to fixed where all columns are equal widths.

gatapia commented 12 years ago

The table filter does not change the table-layout, it also does not set the cell width. What it does do is add a row of filters (select or input). These are set to be of width:95%.
It may be this that is causing issues. Perhaps you can add some sample code to show me this error?

ReanimationXP commented 11 years ago

I'm having the same issue. Why do you set a width at all? Can you provide a switch to turn that off?

To recreate the issue create any table with dynamic width cells, fill it with variable-width content, and then run your tablefilter script. tablefilter makes all the columns the same width based on the longest value in any column. Annoying.