mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:07:39 +00:00
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:
parent
073b953eea
commit
ba6129c224
1 changed files with 11 additions and 5 deletions
|
@ -2111,13 +2111,19 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
|
|||
|
||||
- (void) scrollRangeToVisible: (NSRange) aRange
|
||||
{
|
||||
[self scrollRectToVisible:
|
||||
NSUnionRect ([self rectForCharacterIndex:
|
||||
_selected_range.location],
|
||||
[self rectForCharacterIndex:
|
||||
NSMaxRange (_selected_range)])];
|
||||
// Don't try scrolling an ancestor clipview if we are field editor.
|
||||
// This makes things so much simpler and stabler for now.
|
||||
if (_tf.is_field_editor == NO)
|
||||
{
|
||||
[self scrollRectToVisible:
|
||||
NSUnionRect ([self rectForCharacterIndex:
|
||||
_selected_range.location],
|
||||
[self rectForCharacterIndex:
|
||||
NSMaxRange (_selected_range)])];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Managing the Delegate
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue