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

Update extents after setBounds #3552

Merged
merged 1 commit into from
Jun 12, 2020
Merged

Conversation

themadcreator
Copy link
Contributor

This change will trigger the 'updateExtents' method of a plot after
its bounds are set.

This is necessary because some scales, such as quantitative, will
use the scale to add add padding to a domain in a proportional manner
requiring the scale to have a valid domain and range.

When the plots are anchored to an element with zero size or hidden
with display: none the collapsed range causes invalid padding values
to set the domain.

This change will ensure that when the component finally has a valid
size, the domains are updated correctly.

This change will trigger the 'updateExtents' method of a plot after
its bounds are set.

This is necessary because some scales, such as quantitative, will
use the scale to add add padding to a domain in a proportional manner
requiring the scale to have a valid domain and range.

When the plots are anchored to an element with zero size or hidden
with `display: none` the collapsed range causes invalid padding values
to set the domain.

This change will ensure that when the component finally has a valid
size, the domains are updated correctly.
@blueprint-bot
Copy link

Update extents after setBounds

Demo: quicktests | fiddle

@themadcreator themadcreator merged commit 5e0d275 into develop Jun 12, 2020
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.

2 participants