Follow-up Comment #4, bug #22694 (project gnustep):
Well, it seems that macosx does no magic...
So, my suggestion is to implement a hidden method,
say _scrollToPoint: in NSClipView as this:
- (void) _scrollToPoint: (NSPoint)aPoint
{
NSRect proposedBounds;
NSRect proposedVisibleRect;
NSRect newVisibleRect;
NSRect newBounds;
// give documentView a chance to adjust its visible rectangle
proposedBounds = _bounds;
proposedBounds.origin = aPoint;
proposedVisibleRect = [self convertRect: proposedBounds
toView: _documentView];
newVisibleRect = [_documentView adjustScroll: proposedVisibleRect];
newBounds = [self convertRect: newVisibleRect fromView: _documentView];
[self scrollToPoint:newBounds.origin];
}
and change calls to scrollToPoint: inside NSClipView and
NSScrollView (except the last one, that changes the header
clip view) to calls to this new method.
I tested it, and it works fine. (or at least seems to)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22694>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep