mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 02:33:50 +00:00
Fix for resizing scrollviews when scrollers is scrolled all the way down.
Reviewed by me.
This commit is contained in:
1 parent
66203b0685
commit
e095b245e2
1 file changed
+12
-1
+12
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user