dynamicView.fitAllNodes()

The dynamicView.fitAllNodes() function fits all nodes into a Dynamic or Streaming 3D Viewer scene.