summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2003-11-16 01:01:32 (GMT)
committervincentdarley <vincentdarley@noemail.net>2003-11-16 01:01:32 (GMT)
commit49d8d7fa028eda047fdc8e9a3a833509a72a495c (patch)
tree23ba70f06ef9480abf7114da72de13b962724c13 /macosx
parentdf3b08fe5dd83b26975f19bdcc7e3aa3d8338069 (diff)
downloadtk-49d8d7fa028eda047fdc8e9a3a833509a72a495c.zip
tk-49d8d7fa028eda047fdc8e9a3a833509a72a495c.tar.gz
tk-49d8d7fa028eda047fdc8e9a3a833509a72a495c.tar.bz2
scrollbar size fix
FossilOrigin-Name: 98a4db951b313d568fc61977679b6412ea3596db
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXScrlbr.c5
1 files changed, 3 insertions, 2 deletions
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,