Skip to content

fix: include title width when fitting vertical legends - #12330

Open
minwookshin wants to merge 1 commit into
chartjs:masterfrom
minwookshin:fix/11850
Open

minwookshin wants to merge 1 commit into
chartjs:masterfrom
minwookshin:fix/11850

Conversation

@minwookshin

Copy link
Copy Markdown

A long title in a left or right legend can be clipped even when the chart has room. Include the title’s measured width and horizontal padding when fitting a vertical legend, while retaining the configured width limit.

Fixes #11850.

Validation: all 82 legend tests pass in Chromium and Firefox, including five new cases covering both sides, font sizes, hidden titles, and maxWidth. pnpm lint (including type tests) passes. The full Chromium suite passes 1,701 tests; seven unrelated image fixtures fail identically on unchanged upstream 7169e65 (1,696 passing), so no reference images were changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Legend title does not fit

1 participant