diff options
author | hobbs <hobbs@noemail.net> | 2002-01-18 02:55:05 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-01-18 02:55:05 (GMT) |
commit | 94fa47caf7f1a2eb564037d9b8da982757d0b5a6 (patch) | |
tree | 4cf1fd07d548e1d1490a9f3480829d4d48ed2b92 /generic/tkListbox.c | |
parent | 61524b852bd2e569185dda9a050e01a33dd29d6b (diff) | |
download | tk-94fa47caf7f1a2eb564037d9b8da982757d0b5a6.zip tk-94fa47caf7f1a2eb564037d9b8da982757d0b5a6.tar.gz tk-94fa47caf7f1a2eb564037d9b8da982757d0b5a6.tar.bz2 |
* generic/tkListbox.c (ChangeListboxOffset): improved tracking
when scrolling on x axis with entry/text. [Bug #225025] (voskuil)
FossilOrigin-Name: 591d7475b45d284f89cd293607ff9035a62f58fd
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r-- | generic/tkListbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index fc4c223..7bf5e0b 100644 --- a/generic/tkListbox.c +++ b/generic/tkListbox.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkListbox.c,v 1.23 2002/01/17 05:13:11 dgp Exp $ + * RCS: @(#) $Id: tkListbox.c,v 1.24 2002/01/18 02:55:06 hobbs Exp $ */ #include "tkPort.h" @@ -2673,8 +2673,12 @@ ChangeListboxOffset(listPtr, offset) /* * Make sure that the new offset is within the allowable range, and * round it off to an even multiple of xScrollUnit. + * + * Add half a scroll unit to do entry/text-like synchronization. + * [Bug #225025] */ + offset += listPtr->xScrollUnit / 2; maxOffset = listPtr->maxWidth - (Tk_Width(listPtr->tkwin) - 2*listPtr->inset - 2*listPtr->selBorderWidth) + listPtr->xScrollUnit - 1; |