I'm trying to use tabulator (4.4.3) to generate tables, and I am having trouble when the tables have percentage-based widths and are initially hidden (in a bootstrap tab). When I try to redraw the initially hidden table, the non-percentage column gets resized correctly, but the percentage-based columns stay small and never become their correct size.
I want to use the fitColumns layout mode, because I want the columns to take the full width. I don't see this problem in the fitData mode, but then I don't get the column expansion that I really want.
var cols = [
{ field: 'name', title: 'Name', width: '20%' },
{ field: 'description', title: 'Description', width: '30%' },
{ field: 'location', title: 'Location', widthGrow: 2 },
];
var config = {
columns: cols,
data: data,
layout: 'fitColumns'
};
var always_shown_table = new Tabulator("#my-table", config);
I believe I'm calling table.redraw() at the correct time, but it looks like the tabulator layout code never adjusts the columns with set widths. How can I get my table to redraw these columns correctly?
I created a fiddle to demo this issue.
