Skip to content

Legend.symbolHeight do not accept 0 #16516

@KacperMadej

Description

@KacperMadej

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/

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions