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 height does not reflow if chart.width is set #6968

Closed
jaa1982 opened this Issue Jul 15, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@jaa1982

jaa1982 commented Jul 15, 2017

Expected behaviour

If the chart.width is set, the chart height should still reflow when the container is resized or chart.reflow is called

Actual behavior

If the chart.width is set, the chart height does not reflow.

The behavior is as expected in the opposite scenario. If the chart height is set, the chart width does reflow when the container is resized

Live demo with steps to reproduce

https://jsfiddle.net/leogdsl/ugu63ah0/12/

Affected browser(s)

Chrome, Safari, IE11

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Jul 17, 2017

Contributor

Hi @cheoalvarez

Thank you for reporting this issue.

Workaround:
Instead of chart.reflow() use chart.setSize(undefined, undefined, false);, demo: https://jsfiddle.net/nmhk053u/

Contributor

pawelfus commented Jul 17, 2017

Hi @cheoalvarez

Thank you for reporting this issue.

Workaround:
Instead of chart.reflow() use chart.setSize(undefined, undefined, false);, demo: https://jsfiddle.net/nmhk053u/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment