diff options
author | culler <culler> | 2019-06-30 14:35:13 (GMT) |
---|---|---|
committer | culler <culler> | 2019-06-30 14:35:13 (GMT) |
commit | d618c08d920a191a902d8270166ea76a2b17d4cb (patch) | |
tree | c25e462c3dd69aa0fe5b099542c5c9ffd0ca091a /macosx/ttkMacOSXTheme.c | |
parent | 89357088ac798f9bc97064cfe566d05438b5e6c5 (diff) | |
download | tk-d618c08d920a191a902d8270166ea76a2b17d4cb.zip tk-d618c08d920a191a902d8270166ea76a2b17d4cb.tar.gz tk-d618c08d920a191a902d8270166ea76a2b17d4cb.tar.bz2 |
Fix geometry of horizontal ttk scrollbars; hide thumb when no scrolling is possible.
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index 2c2c266..129148f 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -2347,8 +2347,13 @@ static void ThumbElementSize( int orientation = TTK_ORIENT_HORIZONTAL; Ttk_GetOrientFromObj(NULL, scrollbar->orientObj, &orientation); - *minHeight = 18; - *minWidth = 8; + if (orientation == TTK_ORIENT_VERTICAL) { + *minHeight = 18; + *minWidth = 8; + } else { + *minHeight = 8; + *minWidth = 18; + } } static void ThumbElementDraw( |