summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-11-16 01:01:32 (GMT)
committervincentdarley <vincentdarley>2003-11-16 01:01:32 (GMT)
commit9c4b699070cef63a8f5d56755a330322fa2cc6c9 (patch)
tree23ba70f06ef9480abf7114da72de13b962724c13
parent7c9328b664ec680ed43ab91a5cd3f5672967d579 (diff)
downloadtk-9c4b699070cef63a8f5d56755a330322fa2cc6c9.zip
tk-9c4b699070cef63a8f5d56755a330322fa2cc6c9.tar.gz
tk-9c4b699070cef63a8f5d56755a330322fa2cc6c9.tar.bz2
scrollbar size fix
-rw-r--r--ChangeLog3
-rw-r--r--macosx/tkMacOSXScrlbr.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 47cc504..c954131 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
fixed an unreported new problem if a single logical line wraps
to fill more than the entire display.
+ * macosx/tkMacOSXScrlbr.c: fix to [Bug 840978] where the size
+ of the proportional scrollbar was calculated wrongly.
+
2003-11-14 Joe English <jenglish@users.sourceforge.net>
* doc/text.n: Fix markup errors.
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index ecf7c59..deee1b0 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.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: tkMacOSXScrlbr.c,v 1.5 2002/11/20 05:21:08 wolfsuit Exp $
+ * RCS: @(#) $Id: tkMacOSXScrlbr.c,v 1.6 2003/11/16 01:01:32 vincentdarley Exp $
*/
#include "tkScrollbar.h"
@@ -1072,7 +1072,8 @@ UpdateControlValues(
(1.0 - scrollPtr->lastFraction));
viewSize = (SInt32) ((scrollPtr->lastFraction - scrollPtr->firstFraction)
- * MAX_SCROLLBAR_DVALUE);
+ * MAX_SCROLLBAR_DVALUE
+ /(1 - (scrollPtr->lastFraction - scrollPtr->firstFraction)));
SetControlViewSize(macScrollPtr->sbHandle,viewSize);
SetControlValue(macScrollPtr->sbHandle,