var diagram =$$(go.Diagram, “myDiagramDiv”,
Dear Friends,
I want to make nodes in left sides to be fixed while scrolling horizontally. iam using below code and making all the nods to be fixed while horizontal scroll :
{
“InitialLayoutCompleted”: function(e) {
},
layout:
$$(go.TreeLayout,
{angle:90, layerSpacing:100}),
"ViewportBoundsChanged": recenterRoot,
});
function recenterRoot(e) {
//--------------------------recenter------------------------------------------------------------------
if(mainCtrlInc>=maxCtrl){
for(var inc3=1; inc3<=mainCtrlInc; inc3++){
var root = e.diagram.findNodeForKey(“C_”+inc3);
if (root) {
e.diagram.commit(function (diag) {
root.location = new go.Point(diagram.viewportBounds.left, root.location.y);
}, null); // don’t record in UndoManager
root.layerName = “Foreground”;
}
}
}
}
in this all the left nodes (rectangles) shows horizontally half, starting half go and hide inside. I think the xy (registration point)starts for these nodes from center. HOw can I make that nodes xy starts from center or top of Left side of the nodes?
Thanks and Regards,
Syed Abdul Rahim