Commit scroll adjustment patch by Benhur Stein.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26678 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-06-17 20:20:15 +00:00
parent 4b24e5cd48
commit ec6135aade
3 changed files with 45 additions and 7 deletions

View file

@ -49,6 +49,10 @@
#include "AppKit/PSOperators.h"
#include "GNUstepGUI/GSTheme.h"
@interface NSClipView (Private)
- (void) _scrollToPoint: (NSPoint)aPoint;
@end
//
// For nib compatibility, this is used to properly
// initialize the object from a OS X nib file in initWithCoder:.
@ -406,7 +410,7 @@ static float scrollerWidth;
/* scrollToPoint: will call reflectScrolledClipView:, which will
* update rules, headers, and scrollers. */
[_contentView scrollToPoint: point];
[_contentView _scrollToPoint: point];
}
- (void) keyDown: (NSEvent *)theEvent
@ -462,7 +466,7 @@ static float scrollerWidth;
amount = -amount;
}
point.y = clipViewBounds.origin.y - amount;
[_contentView scrollToPoint: point];
[_contentView _scrollToPoint: point];
}
@ -490,7 +494,7 @@ static float scrollerWidth;
amount = -amount;
}
point.y = clipViewBounds.origin.y + amount;
[_contentView scrollToPoint: point];
[_contentView _scrollToPoint: point];
}
/**
@ -534,7 +538,7 @@ static float scrollerWidth;
amount = -amount;
}
point.y = clipViewBounds.origin.y - amount;
[_contentView scrollToPoint: point];
[_contentView _scrollToPoint: point];
}
/**
@ -577,7 +581,7 @@ static float scrollerWidth;
amount = -amount;
}
point.y = clipViewBounds.origin.y + amount;
[_contentView scrollToPoint: point];
[_contentView _scrollToPoint: point];
}
- (void) _doScroll: (NSScroller*)scroller
@ -686,7 +690,7 @@ static float scrollerWidth;
/* scrollToPoint will call reflectScrollerClipView, and that will
* update scrollers, rulers and headers */
[_contentView scrollToPoint: point];
[_contentView _scrollToPoint: point];
}
//