Returns a scroll point adjusted from the proposed new origin, if necessary, to guarantee the view will lie within its document view.
- macOS 10.0–10.10Deprecated
A point which will guarantee the view will lie within its document view.
For example, if the x-coordinate of
new lies to the left of the document view’s origin, then the x-coordinate returned is set to that of the x-coordinate of the document view’s origin.