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

Legend navigation controls hidden and maxHeight ignored after calls to legend.update #6356

jwickman opened this issue Feb 8, 2017 · 3 comments


Copy link

@jwickman jwickman commented Feb 8, 2017

Expected behaviour

In a chart with legend:maxHeight specified, after calling legend.update() the navigation controls should be displayed if legend height exceeds maxHeight.

Actual behaviour

The legend navigation dom nodes are gone after calling update multiple times, and/or maxHeight is ignored.

Live demo with steps to reproduce

Small tweak to the legend.update example on, adding maxHeight in initial options:

Click the Update Legend button 3 times, and you will note that the navigation controls are gone.

Slight tweak to example above, where I demonstrate that just calling update() multiple times is what messes this up (doesn't seem to be caused by whether navigation was necessary prior to the update call):

Click the Update Legend button twice, and you will note that the maxHeight is not applied and navigation controls are missing.

NOTE: I also tried adding maxHeight to the update options, which does not correct it.

Affected browser(s)

Found in Chrome 55, also found to affect FF 51 and IE 11.

Copy link

@pawelfus pawelfus commented Feb 8, 2017

Hi @jwickman

Thank you for reporting. It's already reported here: #6322

And fixed in the master branch, take a look:

Copy link

@jwickman jwickman commented Feb 8, 2017

@pawelfus Sorry for missing #6322 in my search, but that commit does not actually fix the 2nd case I submitted above. See here:

Upon second call to update() maxHeight is ignored, and navigation goes away.

Copy link

@pawelfus pawelfus commented Feb 9, 2017

Hi @jwickman

My apologies for not paying full attention to the second case. Of course you are right, let me reopen this ticket. Note: your second demo doesn't show navigation controls at all with Chrome+osx, but with decreased maxHeight we can observe this issue:

Thank you!

@pawelfus pawelfus reopened this Feb 9, 2017
@pawelfus pawelfus added Type: Bug and removed Type: Duplicate labels Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants