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:
Nicola Pero 2002-06-06 09:40:56 +00:00
parent 9acbeb493a
commit 852cc0ef1e

View file

@ -421,13 +421,16 @@ static NSColor *scrollBarColor = nil;
[super setFrame: frameRect];
if (_isHorizontal)
if (_arrowsPosition != NSScrollerArrowsNone)
{
_arrowsPosition = NSScrollerArrowsMinEnd;
}
else
{
_arrowsPosition = NSScrollerArrowsMaxEnd;
if (_isHorizontal)
{
_arrowsPosition = NSScrollerArrowsMinEnd;
}
else
{
_arrowsPosition = NSScrollerArrowsMaxEnd;
}
}
_hitPart = NSScrollerNoPart;