# Components keep moving even though positions are binded

**URL:** <https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 1, 2024, 10:44pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285 "2024-12-01T22:44:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 1, 2024, 10:44pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/1 "2024-12-01T22:44:58Z")

</div>

So, I've been working on binding components to each other so they can all move based on one singular component. After I've saved the view, once it's closed and reopened, my binded components have scattered and I have to reset the binding.

 ![Screenshot 2024-12-01 173831](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0c7ddef8b142daf3c8e9caebe2b717ff3638b934.png)  
Image 1: what it's supposed to look like on the x and y positions for the component.  
 ![Screenshot 2024-12-01 173852](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3b4d1ad77e3a2c11f2b81187ece40a9707d05bd3.png)  
Image 2: after reopening the view notice how the x and y say "null" rather than the binded position as in image 1.

I don't know why this is happening, if someone can help explain it/how to fix it because it's happening on other views as well.

---

<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:** [December 1, 2024, 11:05pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/2 "2024-12-01T23:05:51Z")

</div>

Can you show us the binding configuration? The binding is returning `null` so the problem is with the binding.

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 1, 2024, 11:12pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/3 "2024-12-01T23:12:23Z")

</div>

![Screenshot 2024-12-01 181148](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1a70bf8d3d5dfb097098f226275d2d8a1bfa91cf.png)  
This is for the x position but the y position is the exact same +CL1-01.width +3

---

<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:** [December 1, 2024, 11:21pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/4 "2024-12-01T23:21:54Z")

</div>

I would expect that to work more reliably if you used a Property binding then added the offset with an expression after that.  
I don't know if the expression binding is being triggered after the parent value changes or if it runs once on startup of the window then never again.

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 1, 2024, 11:28pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/5 "2024-12-01T23:28:20Z")

</div>

That's what's weird is that the 4 views before that doesn't have this issue and they have way more components

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [December 1, 2024, 11:31pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/6 "2024-12-01T23:31:04Z")

</div>

Show the binding that is null, then look at the the expression and see what the error is.

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 1, 2024, 11:54pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/7 "2024-12-01T23:54:32Z")

</div>

Whenever I open the binding, the "preview" gives the proper number there is no real error

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 2, 2024, 12:13am UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/8 "2024-12-02T00:13:21Z")

</div>

Are you sure you don't have a circular reference somewhere?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [December 2, 2024, 12:15am UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/9 "2024-12-02T00:15:51Z")

</div>

To @Transistor point, there is something else going on, maybe uncheck persistent for those two props, save and close the view and open back up.

Edit, also, if you hover over the red triangle it will give you more about the errors, but the errors are probably just that the prop is getting a null.

---

<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:** [December 2, 2024, 3:52am UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/10 "2024-12-02T03:52:34Z")

</div>

This would be typical behaviour if the binding does not update after the page loads. the binding update is prompted by opening the configuration window.

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 2, 2024, 12:56pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/11 "2024-12-02T12:56:23Z")

</div>

I unchecked persistent and the same problem occurred. And the errors on the triangle are just errors about it being "null"

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 2, 2024, 12:57pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/12 "2024-12-02T12:57:15Z")

</div>

There is not a circular reference. The expressions are all modelled after the same simple expressions.

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [December 2, 2024, 1:07pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/13 "2024-12-02T13:07:26Z")

</div>

So it seems if I remove the binding that pulls the actual name of the component and save it works? I have no idea why that would be causing an issue but it's a current solution.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 2, 2024, 1:14pm UTC](https://forum.inductiveautomation.com/t/components-keep-moving-even-though-positions-are-binded/99285/14 "2024-12-02T13:14:00Z")

</div>

> [@Sydney\_Warsaw](#):
>
> .. the binding that pulls the actual name of the component ...

Can you explain what this means?
