summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-09-05 16:43:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-09-05 16:43:52 (GMT)
commitd850a6319b42819152535b7ffb6c8e67ab879370 (patch)
treea2857342e22ff72fb47d3756b08c5e19d4971c70 /win
parentc1fbe0fce3e173d8269b53e644c2baa33abc443e (diff)
downloadtk-d850a6319b42819152535b7ffb6c8e67ab879370.zip
tk-d850a6319b42819152535b7ffb6c8e67ab879370.tar.gz
tk-d850a6319b42819152535b7ffb6c8e67ab879370.tar.bz2
Start with scrollbar
Diffstat (limited to 'win')
-rw-r--r--win/tkWinScrlbr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c
index a54deeb..5f55b89 100644
--- a/win/tkWinScrlbr.c
+++ b/win/tkWinScrlbr.c
@@ -388,6 +388,7 @@ TkpComputeScrollbarGeometry(
* changed. */
{
int fieldLength, minThumbSize;
+ int width;
/*
* Windows doesn't use focus rings on scrollbars, but we still perform
@@ -440,12 +441,13 @@ TkpComputeScrollbarGeometry(
* window, if any). Then arrange for the window to be redisplayed.
*/
+ Tk_GetPixelsFromObj(NULL, scrollPtr->tkwin, scrollPtr->widthObj, &width);
if (scrollPtr->vertical) {
Tk_GeometryRequest(scrollPtr->tkwin,
- scrollPtr->width, 2*scrollPtr->arrowLength + minThumbSize);
+ width, 2*scrollPtr->arrowLength + minThumbSize);
} else {
Tk_GeometryRequest(scrollPtr->tkwin,
- 2*scrollPtr->arrowLength + minThumbSize, scrollPtr->width);
+ 2*scrollPtr->arrowLength + minThumbSize, width);
}
Tk_SetInternalBorder(scrollPtr->tkwin, 0);
}