# \[BUG\] Flex containers set to auto basis don't size correctly

**URL:** <https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061>\
**Category:** Ignition\
**Created:** [March 23, 2025, 11:40pm UTC](https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061 "2025-03-23T23:40:04Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [March 28, 2025, 1:39pm UTC](https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061/21 "2025-03-28T13:39:44Z")

</div>

How do you import a view? I copied the JSON and tried pasting it, but that wasn't an option, so I tried saving it as a .json file and using File \> Import... but that didn't work either...

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 28, 2025, 1:42pm UTC](https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061/22 "2025-03-28T13:42:28Z")

</div>

> [@Ryan\_Deardorff](#):
>
> How do you import a view?

If you **shift** -right-click on a view in the designer tree, you get additional JSON copy/paste options. Pasting completely replaces the view definition, so it is dangerous, and therefore requires an extra operation. (Similar to the raw XML options for Vision windows and templates.)

---

<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:** [March 28, 2025, 1:59pm UTC](https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061/23 "2025-03-28T13:59:50Z")

</div>

> [@pturmel](#):
>
> it is dangerous

It's only replacing it locally though, you can always close and revert 🤷 it'd be nice if this was made more obvious somehow, as people simply don't know this exists unless they stumble across a random forum post. Maybe it's in the user manual but I doubt it.. The doc writers probably don't even know about it 😅

@Paul.Scott?

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [March 28, 2025, 2:15pm UTC](https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061/24 "2025-03-28T14:15:07Z")

</div>

Now that I've been able to import the view, I see what you mean. There's clearly enough space available in the parent container. At first I thought it must be because you had OuterFlex set to a basis of 200px, but it behaves the same when set to auto.

If this is a bug in Ignition, it seems like one they wouldn't be able to fix without breaking existing views that were designed to work when it behaves the wrong way.

[Previous page](https://forum.inductiveautomation.com/t/bug-flex-containers-set-to-auto-basis-dont-size-correctly/104061.md?page=1)
