Skip to content

Commit

Permalink
fix background label height adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
boygirl committed Sep 25, 2020
1 parent 4f74e52 commit 5a7a24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/victory-core/src/victory-label/victory-label.js
Expand Up @@ -203,7 +203,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
const height = inline
? Math.max(...textSizes.map((size) => size.height))
: textSizes.reduce((memo, size, i) => {
const capHeightAdjustment = i ? capHeight / 2 : 0;
const capHeightAdjustment = i ? 0 : capHeight / 2;
return memo + size.height * (tspanValues[i].lineHeight - capHeightAdjustment);
}, 0);

Expand Down

0 comments on commit 5a7a24f

Please sign in to comment.