# Overlapping Components in a Flex View in Perspective

**URL:** <https://forum.inductiveautomation.com/t/overlapping-components-in-a-flex-view-in-perspective/29201>\
**Category:** Ignition\
**Created:** [October 18, 2019, 4:29pm UTC](https://forum.inductiveautomation.com/t/overlapping-components-in-a-flex-view-in-perspective/29201 "2019-10-18T16:29:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [October 18, 2019, 4:29pm UTC](https://forum.inductiveautomation.com/t/overlapping-components-in-a-flex-view-in-perspective/29201/1 "2019-10-18T16:29:22Z")

</div>

If I create a new Flex View and I put two containers in this view, is there a way to actually have those containers reside on top of each other (have the same position). I am looking to show or hide one of the containers based on a criteria, but i don’t see how to do that with a flex view.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [October 18, 2019, 4:30pm UTC](https://forum.inductiveautomation.com/t/overlapping-components-in-a-flex-view-in-perspective/29201/2 "2019-10-18T16:30:47Z")

</div>

To my knowledge, flex views can’t contain overlapping components. The only view I know that can do that would be coordinate.

---

<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 18, 2019, 4:47pm UTC](https://forum.inductiveautomation.com/t/overlapping-components-in-a-flex-view-in-perspective/29201/3 "2019-10-18T16:47:26Z")

</div>

In a Flex Container, bind `Component.position.display` to an expression which expresses your condition.

 ![08%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f1586b4a2b6ab0db8294306922a4de2d984fa315.png)  
And after toggling the Toggle Switch:  
 ![16%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2d81c74ace823b47b10cf0e03c934db86924f45c.png)

---

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [October 18, 2019, 5:38pm UTC](https://forum.inductiveautomation.com/t/overlapping-components-in-a-flex-view-in-perspective/29201/4 "2019-10-18T17:38:43Z")

</div>

awesome, thank you!
