Skip to content

Legend.symbolHeight do not accept 0 #16516

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

Closed
KacperMadej opened this issue Oct 20, 2021 · 0 comments · Fixed by #18559
Closed

Legend.symbolHeight do not accept 0 #16516

KacperMadej opened this issue Oct 20, 2021 · 0 comments · Fixed by #18559
Assignees

Comments

@KacperMadej
Copy link
Contributor

Expected behaviour

No visible symbol when symbolHeight is set to 0.

Actual behaviour

legend.symbolHeight =
options.symbolHeight || legend.fontMetrics.f;

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/5u18nvym/

Workaround

Use a value close to 0 instead - so something like 0.001 will be ok.
https://jsfiddle.net/BlackLabel/5u18nvym/1/

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

Successfully merging a pull request may close this issue.

3 participants