Horizontal legend height #5921

Closed
PaulDalek opened this Issue Nov 2, 2016 · 1 comment

Projects

None yet

2 participants

@PaulDalek
PaulDalek commented Nov 2, 2016 edited

Behaviour

It seems that there is a limitation of a legend height inside of Legend.prototype.handleOverflow() function:

if (options.layout === 'horizontal') { spaceHeight /= 2; }

that does not allow maxHeight property to be a higher value than half of the spaceHeight

spaceHeight = chart.spacingBox.height + (alignTop ? -optionsY : optionsY) - this.padding

when layout is set to horizontal.

Live demo with steps to reproduce

https://jsfiddle.net/4zbLfz24/1/

@oysteinmoseng oysteinmoseng self-assigned this Nov 2, 2016
@oysteinmoseng
Collaborator

Added a suggested fix, hopefully this does not break something else.

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