You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
EXAMPLE 1:
Small tweak to the legend.update example on api.highcharts.com, adding maxHeight in initial options: http://jsfiddle.net/mkz2mvpj/
Click the Update Legend button 3 times, and you will note that the navigation controls are gone.
EXAMPLE 2:
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): http://jsfiddle.net/mkz2mvpj/1/
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.
The text was updated successfully, but these errors were encountered:
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: http://jsfiddle.net/mkz2mvpj/5/
Expected behaviour
In a chart with
legend:maxHeight
specified, after callinglegend.update()
the navigation controls should be displayed if legend height exceedsmaxHeight
.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
EXAMPLE 1:
Small tweak to the legend.update example on api.highcharts.com, adding
maxHeight
in initial options:http://jsfiddle.net/mkz2mvpj/
Click the Update Legend button 3 times, and you will note that the navigation controls are gone.
EXAMPLE 2:
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):http://jsfiddle.net/mkz2mvpj/1/
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.
The text was updated successfully, but these errors were encountered: