Broken "repocomp" parameter in Panels

Hi, I would like to drive a component’s position by “dragging to reposition” another one. It seems that the repocomp parameter is supposed to help achieving this particular thing, but I had no success with it.

Step 1 : Create 3 containers A, B and C

Step 2 : Connect A and B to container C for the purpose of displaying them as children

Step 3 : Set up container A to drive container B. First turn the drag to reposition parameter to “Component”, then set up the boundaries to match container C’s width and height minus container B’s width and height. Finally, replace the default “me” expression in the repocomp parameter to be a reference to container B.

Result : I can’t drag container A to move container B.

Tried in 2025.32050 and 2023.11760, also tried disabling Parent Alignment, with no success so far.

Any help would be appreciated.

Mehdi

I see the problem.

Dragging to reposition another operator was designed to for a child to reposition its parent. That is not clear from the documentation. Not sure what behavior you are looking for… when you drag container A do you expect B to move but A to stay still? That is something you will have to code yourself (at least in this version). If you want both to move, you can make A a child of B.

I’ll report this bug and see what the team thinks.

I would like to use A as a controller for B and vice versa (both moving). I feel like parenting wouldn’t work here since it’s a two ways relation that would be needed. Otherwise I could try to change the hierarchy on the fly when B is selected to move A and A is selected to move B. Thanks for your help, I hope it gives the team some ideas for a new feature.

Back to tinkering !

Mehdi

If A can move A+B and B can move A+B, what about putting them both under the same parent and have them both set up to move that parent?

I’ll try that and see if this works in my project !

Thanks