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

Figure is misaligned if initialized being inside hidden div #162

Open
dgrechka opened this issue Dec 25, 2018 · 1 comment
Open

Figure is misaligned if initialized being inside hidden div #162

dgrechka opened this issue Dec 25, 2018 · 1 comment

Comments

@dgrechka
Copy link
Contributor

Open HTML from repro.zip
repro.zip
Click on "MCMC traces"
you will see
image

After double-clicking on the plot it refreshes and becomes normal:
image

@dgrechka
Copy link
Contributor Author

The possible cause for it is in idd.axis.js
in updateSize function.

The function relays on div.outerHeight(false) and div.outerWidth(false), some of which can be zero due to hidden parent div.

Thus adaptive height selection for horizontal axis and adaptive width selection in vertical axis fails.

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

No branches or pull requests

1 participant