Fixed scrollRectToVisible in CPView:
Earlier it only worked when the receiver was the document view of the clip view.
Added test case.
Merge pull request #1678 from mrcarlberg/scroll_rect_to_visible

Fixed scrollRectToVisible in CPView
Refs #1678. Minor tweak.