Mottie / tablesorter

Github fork of Christian Bach's tablesorter plugin + awesomeness ~
https://mottie.github.io/tablesorter/docs/
2.61k stars 754 forks source link

Combination Sticky header widget+Filter widget #10

Closed innc closed 13 years ago

innc commented 13 years ago

Hello :)

I like to combine sticky header and filter widget and i have noticed the following issue:

$("#myTable").tablesorter({ widgets: ['zebra', 'filter', 'stickyHeaders'] });

First, if 'filter' is before 'stickyHeaders', then you will have the filter-row as sticky header...

This solution works fine for me: widgets: ['zebra', 'stickyHeaders', 'filter']

only one exception: I have noticed, if I open a website, where such a table is displayed and i scroll down at browser, so that stickyHeaders appear, then the width size of the stickyHeaders is not correct related to column sizes. I could solved this issue easily by changing the width of the browser, then stickyHeaders width size fits like it should be.

greetings Nils

Mottie commented 13 years ago

Hi Nils!

Thanks for the report. Sadly, the order of the widgets does matter. I'm not really sure how to give one widget loading priority over another, so for now, we'll have to mess around with order to make it work.

The exception will need to get fixed ;) LOL and I just pushed a fix for the widgets too =/

Mottie commented 13 years ago

Ok update done... they should work together, no matter what order they are called in. :)