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 mapNavigation movement on resize #4740

Closed
Izothep opened this issue Nov 13, 2015 · 5 comments
Closed

Highmaps mapNavigation movement on resize #4740

Izothep opened this issue Nov 13, 2015 · 5 comments
Labels
Product: Highcharts Maps 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

@Izothep
Copy link
Contributor

Izothep commented Nov 13, 2015

In Highmaps when chart is resized buttons are moving inside the plotBox.

example:
http://jsfiddle.net/izothep/g467d4rp/

As a workaround it is possible to set
mapNavigation.buttonOptions.alignTo: 'spacingBox'.

example:
http://jsfiddle.net/izothep/co1u7o4t/1/

@KacperMadej
Copy link

Internal note:

Solution for this issue seems to depend on how important is redering map navigation before chart is being rendered.

Not that important - move redering map navigation below this proceed call

Important enough - realign the buttons after chart is rendered like this:

var alignedObjects = chart.renderer.alignedObjects;
each([alignedObjects[0], alignedObjects[1]], function(button) {
    button.placed = false;
    button.align(button.alignOptions, false, button.alignTo);
});

@TorsteinHonsi
Copy link
Collaborator

I'd go for option two, we don't want to compromise on rendering speed.

@KacperMadej
Copy link

+1

@TorsteinHonsi
Copy link
Collaborator

Reopening, the fix had too many side effects.

@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
Product: Highcharts Maps 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

3 participants