Fix for resizing scrollviews when scrollers is scrolled all the way down.

Reviewed by me.
This commit is contained in:
Francisco Tolmasky committed 2009-02-17 14:08:54 -08:00
1 parent 66203b0685
commit e095b245e2
1 file changed
+12 -1
+12 -1
View File
@@ -139,7 +139,7 @@
*/
- (void)viewBoundsChanged:(CPNotification)aNotification
{
[self viewFrameChanged:aNotification];
[self _constrainScrollPoint];
}
/*!
@@ -147,6 +147,17 @@
@param aNotification the notification event
*/
- (void)viewFrameChanged:(CPNotification)aNotification
{
[self _constrainScrollPoint];
}
- (void)resizeSubviewsWithOldSize:(CGSize)aSize
{
[super resizeSubviewsWithOldSize:aSize];
[self _constrainScrollPoint];
}
- (void)_constrainScrollPoint
{
var oldScrollPoint = [self bounds].origin;