Vertically scroll an element into view if needed.
The scroll area element.
The element of interest.
This follows the "nearest" behavior of the native
method, which is not supported by all browsers.
If the element fully covers the visible area or is fully contained within the visible area, no scrolling will take place. Otherwise, the nearest edges of the area and element are aligned.
Generated using TypeDoc