Merge pull request #2136 from daboe01/NEW--documentVisibleRect

NEW: support for documentVisibleRect
This commit is contained in:
Aparajita Fishman committed 2014-06-14 22:04:07 -04:00
commit 63cca6190f
2 files changed
+9

No files matched your search

+5
View File
@@ -230,6 +230,11 @@
return [self scrollToPoint:CGPointMake(bounds.origin.x - deltaX, bounds.origin.y - deltaY)];
}
- (CGRect)documentVisibleRect
{
return [self convertRect:[self bounds] fromView:_documentView];
}
@end
+4
View File
@@ -1262,6 +1262,10 @@ Notifies the delegate when the scroll view has finished scrolling.
[self reflectScrolledClipView:_contentView];
}
- (CGRect)documentVisibleRect
{
return [_contentView documentVisibleRect];
}
#pragma mark -
#pragma mark Overrides