# Perspective table auto size in flex

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [October 18, 2020, 11:48pm UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781 "2020-10-18T23:48:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 18, 2020, 11:48pm UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781/1 "2020-10-18T23:48:21Z")

</div>

Perspective 8.0.16

I have a flex view and several flex containers inside that view (rows). What I would like is to have a table (in one of the flex containers) automatically grow and shrink. I want them to grow to the rows per page setting and shrink to show only the actual rows. When no rows I hide the table. Currently I just use an expression and multiply the row count with a made of number. It works OK, but can get off when you get more rows. One, is there a row height property I can use? Two, is there a better way?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 20, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781/2 "2020-10-20T16:20:19Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![danieltalbot](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/danieltalbot/32/11201_2.png) [@danieltalbot](https://forum.inductiveautomation.com/u/danieltalbot)\
**Post date:** [November 19, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781/3 "2020-11-19T20:38:13Z")

</div>

Also just noticed that ‘auto’ does not seem to work for the perspective table’s basis property. I am fairly sure it used to work… as I have used auto-sized tables as subviews in tables before with success at getting the subview to expand only as far as needed to display all rows.

---

<div class="post-metadata">

**Author:** ![danieltalbot](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/danieltalbot/32/11201_2.png) [@danieltalbot](https://forum.inductiveautomation.com/u/danieltalbot)\
**Post date:** [November 19, 2020, 8:41pm UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781/4 "2020-11-19T20:41:36Z")

</div>

Correction… ‘auto’ does have an effect on the perspective table, however it downsizes the component so that only the header is visible.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/9/b922c5204247f8a717d04d4e5c8b59bb2226ea18.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9dfa21d93f312bfa9903955d82464962dfaf8250.png)

---

<div class="post-metadata">

**Author:** ![peter.dolberg](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@peter.dolberg](https://forum.inductiveautomation.com/u/peter.dolberg)\
**Post date:** [November 25, 2020, 12:16am UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781/5 "2020-11-25T00:16:56Z")

</div>

Try setting the table’s `virtualized` property to `false`. It defaults to `true` but if you change it to `false` then you can set the table’s position.basis property to `auto` and the table will have the correct size.

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [May 14, 2026, 1:41pm UTC](https://forum.inductiveautomation.com/t/perspective-table-auto-size-in-flex/39781/6 "2026-05-14T13:41:25Z")

</div>

Thats wonderful advice
