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

only take container computed size in px #4925

Merged
merged 1 commit into from
Jun 16, 2020
Merged

only take container computed size in px #4925

merged 1 commit into from
Jun 16, 2020

Conversation

alexcjohnson
Copy link
Collaborator

When you plot into a hidden div, window.getComputedStyle cannot resolve width and height into pixels if they are given in some other form (for example '100%') so it leaves the original value. We shouldn't try to use that value, instead we should fall back on the schema default height & width in this case.

@archmoj this needs to go in the upcoming Dash release, so may require its own patch release if 1.54.3 isn't available in the next day or so. (sorry for the rush!)

@alexcjohnson alexcjohnson added the bug something broken label Jun 16, 2020
@alexcjohnson alexcjohnson added this to the v1.54.3 milestone Jun 16, 2020
@archmoj
Copy link
Contributor

archmoj commented Jun 16, 2020

Nicely done.
The CI as well as no_ci tests are also passed.
[ 💃 ] | 💃 | 💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants