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

Center a node while in a group

$
0
0

@Tany wrote:

Hi,
My diagram could contain lots of elements, where some of them are groups.
If the user wants to search for a particular node i use the

diagram.centerRect(node.actualBounds);
diagram.select(node);

Yet, if the node is in a group (could be nested groups), and the node location outside the diagram bounds (namely the node position is (1000,1000) while the diagram div width and height are width:800px; height:800px).
even if i problematically expand the group, gojs does not center the node.
The user has to scroll down to position (1000,1000) to see it.
By the way, if the group is already expanded, gojs does jump to the node location and it is seen.
Please advise.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles