Hi Mikel,
By default, in the diagram, if set layout for diagram and call doLayout means then nodes are get arranged based on the layout algorithm. We cannot able to limit the horizontal arrangement of the items during the layout ordering. If you want to avoid horizontal scrolling for the diagram means then do not set any layout for the diagram and do not call doLayout method.
Regards
Aravind Ravi