summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2008-11-22 22:07:34 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2008-11-22 22:07:34 (GMT)
commit4c6651fa1208fa3016b46b8aba5911aa796c1381 (patch)
treeaf12853977bd307d763112af35a4eec9243dabf3
parentf7d56b01657162c91076ba913cba12cf33ca5a7c (diff)
downloadtk-4c6651fa1208fa3016b46b8aba5911aa796c1381.zip
tk-4c6651fa1208fa3016b46b8aba5911aa796c1381.tar.gz
tk-4c6651fa1208fa3016b46b8aba5911aa796c1381.tar.bz2
[Bug 1991930] combobox dropdown needs to be topmost
-rw-r--r--ChangeLog4
-rw-r--r--library/ttk/combobox.tcl5
2 files changed, 4 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index abdebae..2c1ea8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
2008-11-22 Pat Thoyts <patthoyts@users.sourceforge.net>
- * library/ttk/combobox.tcl: [Bug 1939129] combobox dropdown was
- drawn behind topmost toplevels.
+ * library/ttk/combobox.tcl: [Bug 1939129,1991930] combobox dropdown
+ was drawn behind topmost toplevels.
* generic/tkCanvText.c: Fixed up complaints from MSVC engendered
* generic/tkFont.c: by the last commit. In particular replaced
* win/tkWinDraw.c: round() which is a C99 function.
diff --git a/library/ttk/combobox.tcl b/library/ttk/combobox.tcl
index 5f50ca0..5094300 100644
--- a/library/ttk/combobox.tcl
+++ b/library/ttk/combobox.tcl
@@ -1,5 +1,5 @@
#
-# $Id: combobox.tcl,v 1.14 2008/11/22 20:26:11 patthoyts Exp $
+# $Id: combobox.tcl,v 1.15 2008/11/22 22:07:34 patthoyts Exp $
#
# Combobox bindings.
#
@@ -405,8 +405,7 @@ proc ttk::combobox::Post {cb} {
# Post the listbox:
#
- wm attribute $popdown \
- -topmost [wm attribute [winfo toplevel $cb] -topmost]
+ wm attribute $popdown -topmost 1
wm deiconify $popdown
raise $popdown
}