It would be nice if one could pass an outline parameter to the function, containing minimum distance between the element and its scrollable parent border.
// If possible, $target will be scrolled so,
// that there will be at least 10px around it's border visible for a user
$target.scrollintoview({
outline : 10
});
// Different values for different sides
$target.scrollintoview({
outline : {top: 10, right: 15, bottom: 5, left: 15}
});
It would be nice if one could pass an outline parameter to the function, containing minimum distance between the element and its scrollable parent border.