mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: widthFixed option now finds both visible td & th cells
This commit is contained in:
parent
6e44cc9590
commit
56054eaede
@ -564,7 +564,7 @@
|
||||
var colgroup = $('<colgroup>'),
|
||||
overallWidth = $(table).width();
|
||||
// only add col for visible columns - fixes #371
|
||||
$(table.tBodies[0]).find("tr:first").children("td:visible").each(function() {
|
||||
$(table.tBodies[0]).find("tr:first").children(":visible").each(function() {
|
||||
colgroup.append($('<col>').css('width', parseInt(($(this).width()/overallWidth)*1000, 10)/10 + '%'));
|
||||
});
|
||||
$(table).prepend(colgroup);
|
||||
|
Loading…
Reference in New Issue
Block a user