Skip to content

fix: use scrollHeight for PNG export so legend is never cut - #1675

Open
Flotapponnier wants to merge 5 commits into
devfrom
fix/export-legend-cut
Open

fix: use scrollHeight for PNG export so legend is never cut#1675
Flotapponnier wants to merge 5 commits into
devfrom
fix/export-legend-cut

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

html-to-image defaults to offsetHeight (visible height), which clips the legend when it wraps into many rows (100+ providers). Passing scrollHeight/scrollWidth captures the full content regardless of scroll position.

Sign up for freeto 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.

1 participant

@Flotapponnier