We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8b3a5 commit 9571e31Copy full SHA for 9571e31
src/BootstrapBlazor/Components/Table/Table.razor.js
@@ -785,8 +785,7 @@ const calcCellWidth = cell => {
785
document.body.appendChild(div);
786
787
const cellStyle = getComputedStyle(cell);
788
- const width = div.offsetWidth + parseFloat(cellStyle.getPropertyValue('padding-left')) + parseFloat(cellStyle.getPropertyValue('padding-right'));
789
- div.remove();
+ const width = div.offsetWidth + parseFloat(cellStyle.getPropertyValue('padding-left')) + parseFloat(cellStyle.getPropertyValue('padding-right')) + parseFloat(cellStyle.getPropertyValue('border-left-width')) + parseFloat(cellStyle.getPropertyValue('border-right-width')) + 1;
790
return width;
791
}
792
0 commit comments