contentAlignment center of viewport not working when scroll mode is set to InfiniteScroll

I want to have infinite scroll at the same time i am having the property of contentAlignment: go.Spot.Center

contont alignment works fine untill i introduce the property scrollMode: go.Diagram.InfiniteScroll

I vaguely remember that there was a reason for that, but we can look into it again.

Instead for now you can set the Diagram.position in an “InitialLayoutCompleted” DiagramEvent listener.

Wait – are you talking about Diagram.contentAlignment, not Diagram.initialContentAlignment? But that would imply that you do not really want any scrolling/panning when the content fits within the viewport.