daniel-nagy / fixed-table-header

Fixed table header directive.
MIT License
88 stars 36 forks source link

Issue when using fixed.table.header module with tabs #17

Open SandyCarney opened 8 years ago

SandyCarney commented 8 years ago

Great Module. Having problem when I am using it with tabs. On page reload It has fixed header and aligned well with table body. Issue is When I click on another tab and come back clone header is not aligned properly. I have noticed header.original.clientHeight returns 0 in some cases. Here is my code pen https://codepen.io/sandycarney/pen/jALqbj

sshanishetti commented 6 years ago

Added $window.addEventListener('click', setWidth) and it worked. If you are using it with tabs, you need to add click event listener. I know it is very old post, but if anyone is having similar issue, it would be helpful to them. Thanks!