github/Rebel — pull request #147 by interstateone (2014-08-08 05:26:09+00:00)
Title: RBLScrolling takes contentInsets into account

As of 10.10 NSScrollView has a contentInsets property that is useful alongside translucent toolbars and title bars so that, similarly to iOS 7+, scroll view content can scroll underneath the blurred bar. The current implementation of `RBLScrollRectInViewToVisible` causes cell views not to be fully visible when scrolled fully to the top or bottom. This change takes these insets into account when scrolling with `RBLScrollRectInViewToVisible` so that table/outline cell views remain fully visible when at the top or bottom of the scroll view.

## Examples

In this app I've set the contentInsets to be equal to the height of each of the visual effect views that are the header and footer. In both of these recordings I first scroll with the arrow keys, and then with the mouse. Notice that the before recording doesn't make the first and last cell views fully visible when scrolling with keys.

### Before
![rebel-before](https://cloud.githubusercontent.com/assets/594059/3853080/543b7512-1ebc-11e4-8d0d-55346cf4eac0.gif)

### After
![rebel-after](https://cloud.githubusercontent.com/assets/594059/3853084/59304ca0-1ebc-11e4-960e-ee9172de7e3d.gif)