mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:50:38 +00:00
Fix automatic scrolling when the selection changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18958 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ee5f3496bc
commit
e609ec5cb0
2 changed files with 17 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-03-29 18:25 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):
|
||||||
|
Always scroll to make the selection visible, and scroll to the right
|
||||||
|
part of it. (Bug reported by Ludovic Marcotte.)
|
||||||
|
|
||||||
2004-03-27 Fred Kiefer <FredKiefer@gmx.de>
|
2004-03-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Header/AppKit/NSTableView.h:
|
* Header/AppKit/NSTableView.h:
|
||||||
|
|
|
@ -2827,13 +2827,17 @@ afterString in order over charRange.
|
||||||
|
|
||||||
if (stillSelectingFlag == NO)
|
if (stillSelectingFlag == NO)
|
||||||
{
|
{
|
||||||
// TODO
|
/*
|
||||||
// Make the selected range visible
|
TODO: should we really do this here?
|
||||||
// We do not always want to scroll to the beginning of the
|
|
||||||
// selection
|
Make the insertion point (or the moving endpoint of the selection)
|
||||||
// however we do for sure if the selection's length is 0
|
visible.
|
||||||
if (charRange.length == 0 && _tf.is_editable )
|
*/
|
||||||
[self scrollRangeToVisible: charRange];
|
if (affinity == NSSelectionAffinityUpstream)
|
||||||
|
[self scrollRangeToVisible: charRange];
|
||||||
|
else
|
||||||
|
[self scrollRangeToVisible:
|
||||||
|
NSMakeRange(charRange.location + charRange.length, 0)];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to optimize for overlapping ranges */
|
/* Try to optimize for overlapping ranges */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue