Move widget in repeater with MOVE TO statement does not work


#1

Hi there,
I am new to Axure, so here’s a question…

I want to move a set of widgets in a repeater based on item.index. I set the MOVE TO x and y, but
the widgets seem to move only by a relative position (+x,+y), not to the absolute position (x,y) I want them to go to.
This probably because each widget in a repeater takes a new horizontal position. Am I right ?

How can I make the widgets move to an absolute position ?

Thanks!


#2

I’m not clear on what it is you’re trying to accomplish, but each row of a repeater has it’s own local x,y coordinate plane.


#3

@johan.haelterman,

It would help if you could attach your .rp file.

In general, yes, each repeater row has a local (x,y) coordinate. It sounds like you are moving widgets within the repeater, so that shouldn’t matter, because you can’t move them outside of the repeater. One thing to double-check is that you are using “move to” and not the default “move by” in your Move statement (easy to overlook.)

If you are moving widgets which are outside the repeater, you can use the repeater’s (x,y) coordinates and the repeater row’s index to offset the final (x,y) of the widget so its position is relative to the repeater.


#4

Thanks guys.
Confirms my thoughts, each repeater row has its own position… .
Eventually sorted it out with some trial and error maths.
Kind regards
Johan


unlisted #5