From 1f93b5465b4589effe47a189e70b328d18f4960b Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 6 Jun 2002 09:40:56 +0000 Subject: [PATCH] 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 --- Source/NSScroller.m | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Source/NSScroller.m b/Source/NSScroller.m index 4385f1abd..d2b4dfb68 100644 --- a/Source/NSScroller.m +++ b/Source/NSScroller.m @@ -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;