Don't scroll rect to visible if we are text fields.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6708 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-06-16 19:03:15 +00:00
parent 073b953eea
commit ba6129c224

View file

@ -2111,13 +2111,19 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
- (void) scrollRangeToVisible: (NSRange) aRange - (void) scrollRangeToVisible: (NSRange) aRange
{ {
[self scrollRectToVisible: // Don't try scrolling an ancestor clipview if we are field editor.
NSUnionRect ([self rectForCharacterIndex: // This makes things so much simpler and stabler for now.
_selected_range.location], if (_tf.is_field_editor == NO)
[self rectForCharacterIndex: {
NSMaxRange (_selected_range)])]; [self scrollRectToVisible:
NSUnionRect ([self rectForCharacterIndex:
_selected_range.location],
[self rectForCharacterIndex:
NSMaxRange (_selected_range)])];
}
} }
/* /*
* Managing the Delegate * Managing the Delegate
*/ */