Closed Sledge- closed 7 years ago
Hey @Sledge- ,
I have seen similar issues with inline elements when styles arn't configured correctly. it is a common issue with inline elements when there are interfering styles in play.
The root cause of this is likely some other styles on the page that have applied styles to the header elements that are not supposed to be there, which is throwing off the render. I would suggest you create your table on a clean boilerplate html page and compare the styles with the elements on your existing page. or use your browser tools to look at the styles applied to the affected elements and see what styles are being applied the table headers or any of the elements above them that do not come from the Tabulator style sheet.
Tabulator programatically builds its elements, so changing the headers after the fact is likely going to mess with the calculations, i would suggest that you avoid directly manipulating the DOM inside the table.
I have tried your constructor on a blank page and it works fine with no issues.
Let me know if i can be of any further help.
Cheers
Oli
Hi Oli,
Thanks for the reply. I probably should have added that the app lives in a page in an Angular 1 dashboard, so there could be interference between some set of styles coming from the dashboard and the styles coming from tablulator. I'll try your suggestion and let you know if I learn anything.
Karl
Karl, that would be great, im looking to write an article about integrating Tabulator into angular projects as a lot of devs seem to be doing that at the moment, so any lessons you have learnt would be great!
Cheers
Oli
I am having this strange issue that causes the column headers to become taller depending on their column position. It looks like it might be a bug in Tabulator.
Screenshot attached:
Here is my code:
Here is what the DOM elements look like:
What's weird about it it is that nowhere do I attempt modify the height, yet it seems to increase according to some formula: 100, 180, 340, 660, 1300.
I did attempt a workaround (see above) to set the column header height attribute using a d3 selection. I have had some success using this method but it is not reliable so I would like to find a way to correct the column header height properly.