vincjo / svelte-simple-datatables

A Datatable component for Svelte

Home Page:https://vincjo.fr/svelte-simple-datatables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table rerender infinitely with non-zero padding for left and right

rajasegar opened this issue · comments

If i set the following style for my td

td { text-align: center; padding: 4px 2px; }

the component is rerendering and goes on expading overflowing the page width
Screenshot 2022-06-29 at 4 19 15 PM

I am facing similar issues with infinite expansion. I suspect it is where the code attempts to keep headers of the columns (which are outside the table element) the same width as the cells in the columns. Try applying the same padding to "th" as well to see if it still occurs.