Skip to content

Commit

Permalink
fix: force reload the getBBox call to prevent getting stale dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Oct 10, 2024
1 parent 21de660 commit 8adce12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export function checkIfFitsWithinContainer(
subText,
spacing
) {
const valueRect = valueElement.getBBox()
const valueRect = valueElement.getBBox(true)
const subTextRect = subText
? subTextElement.getBBox()
? subTextElement.getBBox(true)
: { width: 0, height: 0 }
const requiredValueWidth = icon
? valueRect.width + spacing.iconGap + spacing.iconSize
Expand Down

0 comments on commit 8adce12

Please sign in to comment.