# Can the View Canvas component flex in an embedded view?

**URL:** <https://forum.inductiveautomation.com/t/can-the-view-canvas-component-flex-in-an-embedded-view/80491>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 14, 2023, 10:15pm UTC](https://forum.inductiveautomation.com/t/can-the-view-canvas-component-flex-in-an-embedded-view/80491 "2023-10-14T22:15:37Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [October 14, 2023, 10:15pm UTC](https://forum.inductiveautomation.com/t/can-the-view-canvas-component-flex-in-an-embedded-view/80491/1 "2023-10-14T22:15:37Z")

</div>

I'm making a lovely little 24-hour alarm timeline component with the hope of using it as an embedded view in a table to show the frequency and duration of machine stops by alarm. It contains six instances of the 'shadedTimePeriod' view and as many instances of the 'alarmMark' view as required. So far, so good.

 ![Timeline](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/1121a8dea03ae57966566f5338a0109d6facd48c.png)

The problem arises when I use this as an embedded view in a table column.

 ![View canvas doesn't scale](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0eea3dfc10275bf98f66b23a04a65be25ba666c1.png)

As can be seen, the view canvas is inserted at full width where I would like it to autosize to fit.

Do I have any options on this other than fixing the view canvas width to a value and forgetting about any flex layout?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 15, 2023, 3:16pm UTC](https://forum.inductiveautomation.com/t/can-the-view-canvas-component-flex-in-an-embedded-view/80491/2 "2023-10-15T15:16:10Z")

</div>

Your View Canvas is within a Coordinate Container. No Flex behaviors will be seen.

---

<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:** [October 15, 2023, 9:55pm UTC](https://forum.inductiveautomation.com/t/can-the-view-canvas-component-flex-in-an-embedded-view/80491/3 "2023-10-15T21:55:32Z")

</div>

Thanks for the response.

I can put the view canvas into a flex view but I can't make sense of what it does with the left and width properties. Can you give any guidance on this? Can I set these properties as a percentage of the canvas width somehow?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 16, 2023, 5:50am UTC](https://forum.inductiveautomation.com/t/can-the-view-canvas-component-flex-in-an-embedded-view/80491/4 "2023-10-16T05:50:52Z")

</div>

As of 8.1.14, the View Canvas accepts percentage values.

For example,  
A View instance given a width of "25%" will span one-quarter of the space available in the View Canvas from left-to-right, starting at whatever position is defined for `left`.
