diff options
author | dkf <dkf@noemail.net> | 2009-10-07 14:31:02 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2009-10-07 14:31:02 (GMT) |
commit | 4b655b46b37410a45de8dfd77974231012c4dd33 (patch) | |
tree | f27e5f8a71c3f371a5602556406cb10da1baf3c9 | |
parent | ab7aa010480aba49ce1d86b89762bcd80e6db825 (diff) | |
download | tk-4b655b46b37410a45de8dfd77974231012c4dd33.zip tk-4b655b46b37410a45de8dfd77974231012c4dd33.tar.gz tk-4b655b46b37410a45de8dfd77974231012c4dd33.tar.bz2 |
[Patch 2088597]: Stop scrollbars from getting too small at the end.
FossilOrigin-Name: d7921d1ac4c35894977f47c0a42479e1ef550ec5
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | unix/tkUnixScrlbr.c | 6 |
2 files changed, 10 insertions, 5 deletions
@@ -1,11 +1,16 @@ +2009-10-07 Donal K. Fellows <dkf@users.sf.net> + + * unix/tkUnixScrlbr.c (TkpComputeScrollbarGeometry): [Patch 2088597]: + Stop scrollbars from getting too small at the end. + 2009-10-05 Don Porter <dgp@users.sourceforge.net> * changes: Updated for 8.5.8 release. 2009-10-05 Pat Thoyts <patthoyts@users.sourceforge.net> - * win/tkWinButton.c: Backported patch avoiding 3D effects with - user-specified background [Bug 2860827] + * win/tkWinButton.c: [Bug 2860827]: Backported patch avoiding 3D + effects with user-specified background. 2009-09-25 Donal K. Fellows <dkf@users.sf.net> diff --git a/unix/tkUnixScrlbr.c b/unix/tkUnixScrlbr.c index beef224..a23bba1 100644 --- a/unix/tkUnixScrlbr.c +++ b/unix/tkUnixScrlbr.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixScrlbr.c,v 1.6 2007/12/13 15:28:51 dgp Exp $ + * RCS: @(#) $Id: tkUnixScrlbr.c,v 1.6.2.1 2009/10/07 14:31:02 dkf Exp $ */ #include "tkInt.h" @@ -303,8 +303,8 @@ TkpComputeScrollbarGeometry( * grabbed with the mouse). */ - if (scrollPtr->sliderFirst > (fieldLength - 2*scrollPtr->borderWidth)) { - scrollPtr->sliderFirst = fieldLength - 2*scrollPtr->borderWidth; + if (scrollPtr->sliderFirst > (fieldLength - MIN_SLIDER_LENGTH)) { + scrollPtr->sliderFirst = fieldLength - MIN_SLIDER_LENGTH; } if (scrollPtr->sliderFirst < 0) { scrollPtr->sliderFirst = 0; |