Skip to content

Commit

Permalink
fix(table): account for border when calculating height
Browse files Browse the repository at this point in the history
  • Loading branch information
brentswisher committed Jan 30, 2025
1 parent 6587a94 commit 7c0b71f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export class PharosTableCell extends ScopedRegistryMixin(PharosElement) {
const height =
this.getBoundingClientRect().height -
parseFloat(style.paddingTop) -
parseFloat(style.paddingBottom);
parseFloat(style.paddingBottom) -
parseFloat(style.borderBlockWidth);

this.style.height = `${height}px`;

Expand Down

0 comments on commit 7c0b71f

Please sign in to comment.