markmalek / Fixed-Header-Table

jQuery plugin for tables with fixed headers
www.fixedheadertable.com
MIT License
930 stars 542 forks source link

height default 100% does not apply when there is fixColumns #33

Open szemian opened 12 years ago

szemian commented 12 years ago

Hi,

First of all, thanks for the fantastic work!

I found out that if I use the fixColumns, height attribute must be set or else the whole table will just disappear. You can try it on the demo .myTable04.

Any workaround? I have dynamic rows, and unfortunately I do not have the option of setting the height dynamically due to the structure of the framework I am using.

jaredatch commented 11 years ago

I found a work around.

set your height to:

height: $('table.your-table').height() + 'px';

Obviously this will only work if you have one table with that class on the page though :\