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

Horizontal legend height #5921

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

Horizontal legend height #5921

PaulDalek opened this issue Nov 2, 2016 · 1 comment

Comments

@PaulDalek
Copy link
Contributor

@PaulDalek PaulDalek commented Nov 2, 2016

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
Copy link
Member

@oysteinmoseng oysteinmoseng commented Nov 2, 2016

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

TorsteinHonsi added a commit that referenced this issue Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants