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

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...

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.)

2 Likes

It's only replacing it locally though, you can always close and revert :person_shrugging: 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 :sweat_smile:

@Paul.Scott?

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.