mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 10:51:01 +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
502dc13cef
commit
1f93b5465b
1 changed files with 9 additions and 6 deletions
|
@ -421,6 +421,8 @@ static NSColor *scrollBarColor = nil;
|
|||
|
||||
[super setFrame: frameRect];
|
||||
|
||||
if (_arrowsPosition != NSScrollerArrowsNone)
|
||||
{
|
||||
if (_isHorizontal)
|
||||
{
|
||||
_arrowsPosition = NSScrollerArrowsMinEnd;
|
||||
|
@ -429,6 +431,7 @@ static NSColor *scrollBarColor = nil;
|
|||
{
|
||||
_arrowsPosition = NSScrollerArrowsMaxEnd;
|
||||
}
|
||||
}
|
||||
|
||||
_hitPart = NSScrollerNoPart;
|
||||
_cacheValid = NO;
|
||||
|
|
Loading…
Reference in a new issue