# Vega autosize does not work

**URL:** https://discuss.elastic.co/t/vega-autosize-does-not-work/303745
**Category:** Kibana
**Tags:** vega
**Created:** [May 2, 2022, 1:24pm UTC](https://discuss.elastic.co/t/vega-autosize-does-not-work/303745 "2022-05-02T13:24:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![karlanakamura](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@karlanakamura](https://discuss.elastic.co/u/karlanakamura)
#### Post date: [May 2, 2022, 1:24pm UTC](https://discuss.elastic.co/t/vega-autosize-does-not-work/303745/1 "2022-05-02T13:24:20Z")

</div>

Since I updated elastic to v8.1.2 autosize is not working. I'm using `"autosize": {"type": "fit", "contains": "padding"}`, but even if I increase or decrease the size of the chart on the dashboard, the scrollbar always appears as shown in the image below. What should I do? This happens with all graphics using vega.

 ![Capturar](https://us1.discourse-cdn.com/elastic/original/3X/a/3/a324c94cc93e0f72fa65375a641b96acd1243ae6.png)

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [May 2, 2022, 6:18pm UTC](https://discuss.elastic.co/t/vega-autosize-does-not-work/303745/2 "2022-05-02T18:18:40Z")

</div>

Hi! Do you mind opening an issue on GitHub? This looks like a potential bug.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 30, 2022, 6:18pm UTC](https://discuss.elastic.co/t/vega-autosize-does-not-work/303745/3 "2022-05-30T18:18:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
