dobtco/jquery-resizable-columns

Does not work on tables that are not visible

Opened this issue · 2 comments

I have a page with Bootstrap tab. in the one of the tabs I have a table on which I instantiate the resizableColumn plugin. It does not work. However, when I move the table to the tab that's visible when the page first loads, it works.

Vaush commented

Just for future reference, the selector for resizable-columns is td:visible or th:visible, that's why a table that's not visible is not picked up. You can either construct the resizable columns dinamically via javascript when the table is visible, or change the selector in the global options

I've tried changing the selector in the constructor, but it still only appears to work when the table is visible on page load. I've also tried setting resizableColumns again when the show event is triggered, and that also does not seem to work.