Describe the bug
The Right or Left legend positions do not account for the browser scrollbar. Particularly, with short legend names.
Only on Chrome and Safari, not FireFox.
To Reproduce
Steps to reproduce the behavior:
- Go to https://elastic.github.io/elastic-charts/?path=/story/small-multiples-alpha--grid-lines&knob-Show Legend=true
- Toggle the legend with the provided knob
- Notice the legend item labels are truncated due to the scroll bar.
Expected behavior
Somehow account for the scrollbar width when legend values exceed the height of the legend container.
Screenshots

When the legend container is set to overflow-x: hidden the issue goes away

Kibana Cross Issues
elastic/kibana#94596
Describe the bug
The
RightorLeftlegend positions do not account for the browser scrollbar. Particularly, with short legend names.Only on Chrome and Safari, not FireFox.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Somehow account for the scrollbar width when legend values exceed the height of the legend container.
Screenshots

When the legend container is set to
overflow-x: hiddenthe issue goes awayKibana Cross Issues
elastic/kibana#94596