When changing the scroller frame, do not add the arrows if they are not

already there


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13786 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2002-06-06 09:40:56 +00:00
parent 502dc13cef
commit 1f93b5465b

View file

@ -421,6 +421,8 @@ static NSColor *scrollBarColor = nil;
[super setFrame: frameRect]; [super setFrame: frameRect];
if (_arrowsPosition != NSScrollerArrowsNone)
{
if (_isHorizontal) if (_isHorizontal)
{ {
_arrowsPosition = NSScrollerArrowsMinEnd; _arrowsPosition = NSScrollerArrowsMinEnd;
@ -429,6 +431,7 @@ static NSColor *scrollBarColor = nil;
{ {
_arrowsPosition = NSScrollerArrowsMaxEnd; _arrowsPosition = NSScrollerArrowsMaxEnd;
} }
}
_hitPart = NSScrollerNoPart; _hitPart = NSScrollerNoPart;
_cacheValid = NO; _cacheValid = NO;