[Vega] Autosized spec doesn't work correctly if the canvas is larger than the container #142931
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Vega
Vega visualizations
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: 8.3
Describe the bug: Given a spec using autosize, no scrollbars are shown even if the autosized chart ends up larger as the container. Also, the container height keeps growing on an interval.
Steps to reproduce:
Two problematic behaviors:
Expected behavior:
The chart is rendered once with scrollbars.
Additional context:
I can reproduce the missing scrollbars in 8.3, I think they are caused by #130954
The auto-growth of the container doesn't happen in 8.3, I think that once got introduced with #136145
Workaround:
The only way to render the full chart is to disable autosize and provide constant width and height:
This way, the scrollbars appear and no incremental height increases occur.
The text was updated successfully, but these errors were encountered: