From 70438f315720a16c65e6392f45946972dabad6da Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 14 Mar 1999 18:10:42 +0000 Subject: [PATCH] Tidyup. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3910 72102866-910b-0410-8b05-ffd578937521 --- Source/NSScrollView.m | 1 + Source/NSScroller.m | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/NSScrollView.m b/Source/NSScrollView.m index c85ab9822..f259a2633 100644 --- a/Source/NSScrollView.m +++ b/Source/NSScrollView.m @@ -334,6 +334,7 @@ static Class rulerViewClass = nil; } [_contentView scrollToPoint: point]; + [window update]; } - (void) reflectScrolledClipView: (NSClipView*)aClipView diff --git a/Source/NSScroller.m b/Source/NSScroller.m index 25af7bf1b..a9b8525a2 100644 --- a/Source/NSScroller.m +++ b/Source/NSScroller.m @@ -704,9 +704,9 @@ static BOOL preCalcValues = NO; [self drawKnobSlot]; [self drawKnob]; + [self drawArrow: NSScrollerDecrementArrow highlight: NO]; [self drawArrow: NSScrollerIncrementArrow highlight: NO]; - } - (void) drawArrow: (NSScrollerArrow)whichButton highlight: (BOOL)flag @@ -825,8 +825,11 @@ static BOOL preCalcValues = NO; 0 : 2 * (buttonsWidth + buttonsDistance)); height = knobHeight; width = buttonsWidth; +#if 0 if (_isHorizontal) // keeps horiz knob off of the buttons y++; +#endif + x = buttonsDistance; break; } @@ -865,6 +868,7 @@ static BOOL preCalcValues = NO; return NSZeroRect; width = buttonsWidth; height = buttonsWidth; + x = buttonsDistance; break; case NSScrollerIncrementLine: @@ -883,6 +887,7 @@ static BOOL preCalcValues = NO; return NSZeroRect; height = buttonsWidth; width = buttonsWidth; + x = buttonsDistance; break; case NSScrollerNoPart: