From c3149fa0b5bd697ccb9d9afafc37b3aa55739af1 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 13 Nov 2016 15:15:46 +0000 Subject: Fix for [f60c54bec6] Combobox does not retrieve -postoffset value from correct style. Thanks to Daniele Panza. --- library/ttk/combobox.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/ttk/combobox.tcl b/library/ttk/combobox.tcl index 03821a2..6ceccef 100644 --- a/library/ttk/combobox.tcl +++ b/library/ttk/combobox.tcl @@ -368,7 +368,8 @@ proc ttk::combobox::PlacePopdown {cb popdown} { set y [winfo rooty $cb] set w [winfo width $cb] set h [winfo height $cb] - set postoffset [ttk::style lookup TCombobox -postoffset {} {0 0 0 0}] + set style [$cb cget -style] + set postoffset [ttk::style lookup $style -postoffset {} {0 0 0 0}] foreach var {x y w h} delta $postoffset { incr $var $delta } -- cgit v0.12