summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2019-06-27 14:11:47 (GMT)
committerculler <culler>2019-06-27 14:11:47 (GMT)
commit805e7986218616c662f180c3e0ae30844d0ad5c7 (patch)
tree054839467924419781e28d1777155639c270d0e6
parent083d12f62fbec88cfe223c38e9d7a53f4acde39f (diff)
parentfde1c03942e4b7b565abc9532cf439bbe42643f7 (diff)
downloadtk-805e7986218616c662f180c3e0ae30844d0ad5c7.zip
tk-805e7986218616c662f180c3e0ae30844d0ad5c7.tar.gz
tk-805e7986218616c662f180c3e0ae30844d0ad5c7.tar.bz2
Fix bug [8476b75781]: correct rendering of small thumbs in Aqua ttk::scrollbar
-rw-r--r--macosx/ttkMacOSXTheme.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index c33e8c9..05a5539 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -2346,11 +2346,7 @@ static void ThumbElementSize(
int orientation = TTK_ORIENT_HORIZONTAL;
Ttk_GetOrientFromObj(NULL, scrollbar->orientObj, &orientation);
- if (orientation == TTK_ORIENT_HORIZONTAL) {
- *minHeight = 8;
- } else {
- *minWidth = 8;
- }
+ *minHeight = *minWidth = 8;
}
static void ThumbElementDraw(