Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart with a horizontal legend sometimes doesn't render properly #4683

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

kravets-levko
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Bug Fix

Description

Chart (with a lot of legend items - ?) on a small screens (when legend is below the plot) sometimes was rendered very small and didn't fit its container.

The bug was in the code that computes layout for horizontal legend - updatePlot() result handler is called multiple times and on each turn mutates layout object. It was using dimensions computed on previous turn and each time decreased plot height.

Related Tickets & Documents

#4670 (comment)

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Before/After:

image
image

@kravets-levko kravets-levko merged commit 3102e2d into master Feb 25, 2020
@kravets-levko kravets-levko deleted the fix-small-chart-with-horizontal-legend branch February 25, 2020 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants