If selected when a view orientation change occurs, the ViewCube uses the selected objects to calculate the center of the view. Then it zooms to the extents of the selected objects. When cleared, the ViewCube uses the selected objects to calculate the center of the view, and zooms to the extents of the model.
or