# \[Bug\] Position-\>Basis on inserted embedded views resets

**URL:** <https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 25, 2022, 11:24pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458 "2022-09-25T23:24:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [September 25, 2022, 11:24pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/1 "2022-09-25T23:24:45Z")

</div>

Using Perspective, when you drag in a view from the Project Browser into a flex container, the Position.Basis value resets to either auto or 320px, regardless of the original container’s size.

This should probably (In my requirements) be set to keep the existing settings from the original view, I use a lot of self made resources that get dragged into containers to speed up building projects, and every time I have to work out and reset manually the basis value.

Ignition 8.1.20

---

<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:** [September 26, 2022, 10:36am UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/2 "2022-09-26T10:36:31Z")

</div>

> [@David\_Stone](#):
>
> This should probably (In my requirements) be set to keep the existing settings from the original view

I assume you mean you'd rather the default be:

```python
grow: 0
shrink: 0
basis: <default height or width of view>

```

?

I don't think this is a bug, more a feature request to change existing behaviour

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [September 26, 2022, 10:18pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/3 "2022-09-26T22:18:39Z")

</div>

That’s the basics of the issue, bug in as much as it seemingly randomly chooses this basis to be auto or 320px, so its not predictable. At least, I haven’t worked out why it selects one or the other.

---

<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:** [September 26, 2022, 11:39pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/4 "2022-09-26T23:39:20Z")

</div>

I’d second that - it does seem a bit random what you get and it’s always been a bit annoying having to change it every time. I can’t remember if it still happens, but when you copy/pasted components from one flex to another, it also used to reset the position property values which was frustrating.

In a similar vein, I’d _really_ also like to see a “revert to master” for embedded views, especially for them embedded inside of coord containers, that works in both fixed _and_ percent modes

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [September 26, 2022, 11:50pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/5 "2022-09-26T23:50:05Z")

</div>

> [@nminchin](#):
>
> I can’t remember if it still happens, but when you copy/pasted components from one flex to another, it also used to reset the position property values which was frustrating.

There is definitely some behaviour around this where copy pasting items in a coordinate container when in percent mode resets the position to an offscreen value and resets the size to something tiny.

---

<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:** [September 26, 2022, 11:52pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/6 "2022-09-26T23:52:14Z")

</div>

> [@David\_Stone](#):
>
> percent mode resets the position to an offscreen value and resets the size to something tiny.

I'd bet this is when you've copied something from a fixed mode coord container into a percent mode container. What _should_ happen is that it should calculate what percent size and coords it should be based on the size of the coord container, and use that so it remains the same size as you copied

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [September 26, 2022, 11:54pm UTC](https://forum.inductiveautomation.com/t/bug-position-basis-on-inserted-embedded-views-resets/64458/7 "2022-09-26T23:54:29Z")

</div>

Did I just post a separate bug into an existing bug thread... Yes, I believe this is what might be happening.

> [@nminchin](#):
>
> I’d bet this is when you’ve copied something from a fixed mode coord container into a percent mode container.
