Open
Description
If a legend is anchored to the container, the container sizes aren't taken into account when the legend sizes are computed.
In the example codepen legends aren't visible fully and it is not possible to scroll then to the end.
function computeLegendDimensions should take into account the container sizes for calculation of _maxHeight
and _maxWidth