mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 17:32:03 +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
|
- (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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue