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

Highmaps reflow issue #6338

Closed
pliasetski opened this issue Feb 6, 2017 · 3 comments
Closed

Highmaps reflow issue #6338

pliasetski opened this issue Feb 6, 2017 · 3 comments
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Bug

Comments

@pliasetski
Copy link

pliasetski commented Feb 6, 2017

Hello,
Map reflow doesn't work after I set border to map container dynamically.

Expected behaviour

Map should reflows to its parent container.

Actual behaviour

Map doesn't reflow.

Live demo with steps to reproduce

http://jsfiddle.net/Pashe4ka/zm4rfqve/
Please click on "Toggle border size" button in demo.

Affected browser(s)

Latest chrome version

@TorsteinHonsi
Copy link
Collaborator

Thanks for reporting!

Simplified demo: http://jsfiddle.net/highcharts/zm4rfqve/1/

@TorsteinHonsi
Copy link
Collaborator

Apparently the Highcharts SVG itself, or its container, is blocking the container box so the scrollWidth is not reported correctly. A workaround is to remove the container before reflowing: http://jsfiddle.net/highcharts/zm4rfqve/3/

@stale
Copy link

stale bot commented Sep 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Sep 24, 2019
@stale stale bot closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants