autoScrollRegion having unexpected behavior

I have the following Diagram definition:

ticketMasterDiagram = GO(go.Diagram, DivForDiagram,         {
        allowResize: true,
            allowZoom: false,
            allowHorizontalScroll: false,
            allowVerticalScroll: false,
            autoScrollRegion: new go.Margin(0, 0, 0, 0),
            initialContentAlignment: go.Spot.Center,
            initialAutoScale:go.Diagram.Uniform
        });

with the autoScrollRegion set to 0,0,0,0 as per the Documentation, I expected that the autoScrollRegion would be disabled completely for the Diagram. However, the actual behavior of the Diagram when I drag a Node past the lower boundary of the containing <div>, the Diagram shifts all of its contents up, simulating the effect of an autoScroll. Is this a seperate feature I need to disable in addition to autoScrollRegion? It may simply be that I don’t totally understand how autoScrollRegion works.

Thanks!

Yes, it’s trying to show the whole document area, if it can.

If you have set Diagram.allowHorizontalScroll and allowVerticalScroll to false, there’s no need to try to set the Diagram.autoScrollRegion to zero – autoscrolling by the DraggingTool is already disabled.

I suggest you set this additional Diagram property:

        scrollMode: go.Diagram.InfiniteScroll,

It might seem odd to use that value given its name and what you are trying to achieve. But I think it works because it won’t try to keep the document area within the viewport.

Thank you walter! That is precisely the functionality I wished to have.