@Tany wrote:
I have a group with 4 nodes :
{ key: "CC", isGroup:true},
{ key: 5, source: "icons/switch.png", group: "CC", loc:"100 0"},
{ key: 6, source: "icons/switch.png", group: "CC", loc:"200 0" },
{ key: 7, source: "icons/switch.png", group: "CC", loc:"300 0" },
{ key: 8, source: "icons/switch.png", group: "CC", loc:"400 0" },when the group is created its location is set by its nodes locations around (98,-20). As expected.
If i move the group to (300,300), via moveTo() method, the group does move to (300,300) but its node locations gets the value of around (300,300), (400, 300)....respectively.
I would expect them to move to
(300+100,300+0), (300+200,300+0)...respectively
namely add the node X value to the group X value and the same for Y.
Posts: 1
Participants: 1