svelte-simple-datatables icon indicating copy to clipboard operation
svelte-simple-datatables copied to clipboard

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

Open rajasegar opened this issue 2 years ago • 1 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

rajasegar avatar Jun 29 '22 10:06 rajasegar

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.

MartinLee1987 avatar Jun 30 '22 15:06 MartinLee1987