# Flex container and determining auto basis size

**URL:** <https://forum.inductiveautomation.com/t/flex-container-and-determining-auto-basis-size/40517>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [November 11, 2020, 4:36am UTC](https://forum.inductiveautomation.com/t/flex-container-and-determining-auto-basis-size/40517 "2020-11-11T04:36:30Z")\
**Posts on this page:** 3\
**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:** [November 11, 2020, 4:36am UTC](https://forum.inductiveautomation.com/t/flex-container-and-determining-auto-basis-size/40517/1 "2020-11-11T04:36:30Z")

</div>

I have a flex view with some embedded views inside an embedded flex container. One of the Views has a column container in it which changes to stacked layout for mobile widths. I want to display all of this embedded view at any width, no scrollbars, so I thought I should set the basis for it to `auto`, however now it’s becoming too tall…

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/f/6f6b6dd2d46b64e3eeb679e146d039a936c30e5b.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/a/daa1a49703f01b58b89f3551dd5e58ac71a0648a.png)

How can I make the gap at the bottom, below the column container, go away (the red X space)?  
The column container basis is set to auto and grow/shrink are set to 0

---

<div class="post-metadata">

**Author:** ![richardNZ15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/richardnz15/32/33373_2.png) [@richardNZ15](https://forum.inductiveautomation.com/u/richardNZ15)\
**Post date:** [January 26, 2021, 1:34am UTC](https://forum.inductiveautomation.com/t/flex-container-and-determining-auto-basis-size/40517/2 "2021-01-26T01:34:08Z")

</div>

I’m also having trouble with this, have you found a fix?

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [January 26, 2021, 3:53am UTC](https://forum.inductiveautomation.com/t/flex-container-and-determining-auto-basis-size/40517/3 "2021-01-26T03:53:36Z")

</div>

If you make the default height of the view shorter than needed (for example 10px) then it should work correctly with a basis of auto on the embedded view that its in.

This is probably a bug, but that’s the workaround I know of, often times I set a binding on defaultHeight to be something like 600 if the device is the designer, else 10
