svelte-simple-datatables
svelte-simple-datatables copied to clipboard
Table rerender infinitely with non-zero padding for left and right
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
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.