litera/jquery-scrollintoview — Issue #3: Feature request: outline as an option to the function
Author: kachkaev
Created: 2011-11-18 18:35:53+00:00
State: open

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.

```javascript
// 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}
});
```