# Dynamically assign the height of a perspective table

**URL:** <https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 24, 2022, 12:53pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885 "2022-11-24T12:53:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [November 24, 2022, 12:53pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/1 "2022-11-24T12:53:30Z")

</div>

Hi all,  
Is there a way to dynamically assign the height a perspective table. Each rows can have different height since I have text contents with wrap. I don't have any Images, icons, perspective components or embedded view on the table.

currently I'm trying to assign the basis property by calculating the number of row  
eg: `self.position.basis= 100 + (30*numOfRows)`

this does not work since the row height if not fixed

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 24, 2022, 2:50pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/2 "2022-11-24T14:50:32Z")

</div>

You might edit your question to explain if you want to modify the table height (all rows same height) or modify each row's height based on the contents. Then you also want to be clear what those contents are: text (with or without wrap), image, icon, Perspecitive component or embedded view. The quality of the answers you receive may depend on the quality of your question.

---

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [November 25, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/3 "2022-11-25T18:11:47Z")

</div>

Thanks for the feedback, will provide more details going forward in all the questions. 😊

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 25, 2022, 8:17pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/4 "2022-11-25T20:17:52Z")

</div>

See if [Cell wrap in a table column - #5 by mjohnson0238](https://forum.inductiveautomation.com/t/cell-wrap-in-a-table-column/65310/5) is of any help.

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [November 26, 2022, 1:58am UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/5 "2022-11-26T01:58:00Z")

</div>

If it's in a flex container, you might try setting the basis to "auto".

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [November 28, 2022, 9:07am UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/6 "2022-11-28T09:07:04Z")

</div>

This. Use flex, that's what it's for.

---

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [November 28, 2022, 1:31pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/7 "2022-11-28T13:31:35Z")

</div>

yes, thanks

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [November 3, 2023, 5:46pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/8 "2023-11-03T17:46:31Z")

</div>

I have 2 tables (top and bottom) inside a flex container.  
The basis of each table, I want to set to be dynamic, according to actual table height.  
Setting basis to auto doesn't work.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [November 3, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/9 "2023-11-03T18:33:29Z")

</div>

Uncheck the `virtualized` property.

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [November 3, 2023, 7:48pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/10 "2023-11-03T19:48:33Z")

</div>

❤ \* 100

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [January 30, 2024, 7:26pm UTC](https://forum.inductiveautomation.com/t/dynamically-assign-the-height-of-a-perspective-table/66885/11 "2024-01-30T19:26:53Z")

</div>

This man deserves an award. Thank you for saving my sanity.
