mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-13 10:13:50 +00:00
Fix for CPScrollView not updating appropriately when using setShowsVerticalScroller: and setShowsHorizontalScroller:.
Reviewed by me.
This commit is contained in:
1 parent
d584b4dccf
commit
5fc67ff7de
1 file changed
+3
-13
+3
-13
@@ -313,16 +313,11 @@
|
||||
return;
|
||||
|
||||
_hasHorizontalScroller = shouldHaveHorizontalScroller;
|
||||
|
||||
|
||||
if (_hasHorizontalScroller && !_horizontalScroller)
|
||||
[self setHorizontalScroller:[[CPScroller alloc] initWithFrame:CGRectMake(0.0, 0.0, _CGRectGetWidth([self bounds]), [CPScroller scrollerWidth])]];
|
||||
|
||||
else if (!_hasHorizontalScroller && _horizontalScroller)
|
||||
{
|
||||
[_horizontalScroller setHidden:YES];
|
||||
|
||||
[self reflectScrolledClipView:_contentView];
|
||||
}
|
||||
[self reflectScrolledClipView:_contentView];
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -380,12 +375,7 @@
|
||||
if (_hasVerticalScroller && !_verticalScroller)
|
||||
[self setVerticalScroller:[[CPScroller alloc] initWithFrame:_CGRectMake(0.0, 0.0, [CPScroller scrollerWidth], _CGRectGetHeight([self bounds]))]];
|
||||
|
||||
else if (!_hasVerticalScroller && _verticalScroller)
|
||||
{
|
||||
[_verticalScroller setHidden:YES];
|
||||
|
||||
[self reflectScrolledClipView:_contentView];
|
||||
}
|
||||
[self reflectScrolledClipView:_contentView];
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user