If the current selection is not entirely in view, the container should be scrolled (on y axis) until either all of the current selection is visible or, if that is not possible, the top of the current selection should be scrolled to the top of the container.
If the current selection is not entirely in view, the container should be scrolled (on y axis) until either all of the current selection is visible or, if that is not possible, the top of the current selection should be scrolled to the top of the container.