# \[BUG-1485\] 8.1.0 Selecting component in coord container within flex shows bounding box relative to View not coord container

**URL:** <https://forum.inductiveautomation.com/t/bug-1485-8-1-0-selecting-component-in-coord-container-within-flex-shows-bounding-box-relative-to-view-not-coord-container/41953>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [January 4, 2021, 10:41pm UTC](https://forum.inductiveautomation.com/t/bug-1485-8-1-0-selecting-component-in-coord-container-within-flex-shows-bounding-box-relative-to-view-not-coord-container/41953 "2021-01-04T22:41:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 4, 2021, 10:41pm UTC](https://forum.inductiveautomation.com/t/bug-1485-8-1-0-selecting-component-in-coord-container-within-flex-shows-bounding-box-relative-to-view-not-coord-container/41953/1 "2021-01-04T22:41:29Z")

</div>

I have a coord container within a row flex View which is sandwiched between two labels acting as spacers (I want to keep the coord container centred within the view, regardless of screen resolution). However, when I have the spacers there, when I select components within the coord container, their bounding boxes appear to be placed relative to the View, not the coord container position in the View. See screenshot. The left grey area where the bounding box of the selected Label (FILTERS 3) is located is the left spacer, then the start of the coord container is at the thick blue vertical line. If the spacer wasn’t there, you can see that the bounding box would be correctly located above the Label

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/596fba58824508d7124113cb82810fea5afec6fc.png)

---

<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:** [January 5, 2021, 12:31am UTC](https://forum.inductiveautomation.com/t/bug-1485-8-1-0-selecting-component-in-coord-container-within-flex-shows-bounding-box-relative-to-view-not-coord-container/41953/2 "2021-01-05T00:31:39Z")

</div>

Could you supply the View in question either here or through direct message? I’m having trouble understanding the layout you’re describing.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 5, 2021, 12:55am UTC](https://forum.inductiveautomation.com/t/bug-1485-8-1-0-selecting-component-in-coord-container-within-flex-shows-bounding-box-relative-to-view-not-coord-container/41953/3 "2021-01-05T00:55:47Z")

</div>

I PM’d you the view definition

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [January 5, 2021, 5:59pm UTC](https://forum.inductiveautomation.com/t/bug-1485-8-1-0-selecting-component-in-coord-container-within-flex-shows-bounding-box-relative-to-view-not-coord-container/41953/4 "2021-01-05T17:59:30Z")

</div>

This is bug having to do with the selection overlay in the Designer and a coordinate container with an aspect ratio. Thanks for reporting.
