mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
9acbeb493a
commit
852cc0ef1e
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue