Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

Restoring group location when collapsed

$
0
0

@Tany wrote:

Hi,
My group template is binded to “position” as follows :
new go.Binding(“position” “loc”, go.Parse.point).makeTwoWay(go.point.stringify);

When a group is expanded i save the group current location :
group.data.origLoc = group.data.loc;
When the group is collapsed, i try to restore its original location by :
diagram.model.setDataProperty(group.data,“loc”,group.data.origLoc);

But, the group location moves to a new arbitrary position.
How can i restore its original location ?

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles