diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-09-05 16:43:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-09-05 16:43:52 (GMT) |
commit | d850a6319b42819152535b7ffb6c8e67ab879370 (patch) | |
tree | a2857342e22ff72fb47d3756b08c5e19d4971c70 /win | |
parent | c1fbe0fce3e173d8269b53e644c2baa33abc443e (diff) | |
download | tk-d850a6319b42819152535b7ffb6c8e67ab879370.zip tk-d850a6319b42819152535b7ffb6c8e67ab879370.tar.gz tk-d850a6319b42819152535b7ffb6c8e67ab879370.tar.bz2 |
Start with scrollbar
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinScrlbr.c | 6 |
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); } |