Skip to content

Commit

Permalink
fix: layout error
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Feb 7, 2025
1 parent c48b356 commit fca3b80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export class RankingListChartSpecTransformer extends CommonChartSpecTransformer
if (spec.labelLayout === 'bothEnd') {
return (
ctx.getRegion().getLayoutRect().width +
this.getMaxDataLabelLens(spec, spec.xField, this.nameLabelTextMeasure) +
// this.getMaxDataLabelLens(spec, spec.xField, this.valueLabelTextMeasure) +
VALUE_LABEL_PADDING_LEFT
);
} else {
Expand Down Expand Up @@ -453,7 +453,7 @@ export class RankingListChartSpecTransformer extends CommonChartSpecTransformer
right:
spec.labelLayout === 'bothEnd'
? VALUE_LABEL_PADDING_LEFT +
this.getMaxDataLabelLens(spec, spec.yField, this.valueLabelTextMeasure) +
this.getMaxDataLabelLens(spec, spec.xField, this.valueLabelTextMeasure) +
CHART_PADDING_RIGHT
: CHART_PADDING_RIGHT + 10,
top: 0,
Expand Down

0 comments on commit fca3b80

Please sign in to comment.