diff options
author | das <das> | 2007-04-29 02:24:49 (GMT) |
---|---|---|
committer | das <das> | 2007-04-29 02:24:49 (GMT) |
commit | e9226725c11cd8fe293d6643d48146566d5c962b (patch) | |
tree | 83616c330ca5ebe0f636c1c22df4a55c86ce6f36 /library/tearoff.tcl | |
parent | 233d612c07ec4216b5f3c36ec6ad480403cf7b31 (diff) | |
download | tk-e9226725c11cd8fe293d6643d48146566d5c962b.zip tk-e9226725c11cd8fe293d6643d48146566d5c962b.tar.gz tk-e9226725c11cd8fe293d6643d48146566d5c962b.tar.bz2 |
* library/bgerror.tcl: on aqua, use moveable alert resp. modal dialog
* library/dialog.tcl: window class and corresponding system
background pattern; fix button padding.
* library/tearoff.tcl: correct aqua menu bar height; vertically offset
* library/tk.tcl: aqua tearoff floating window to match menu.
Diffstat (limited to 'library/tearoff.tcl')
-rw-r--r-- | library/tearoff.tcl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/tearoff.tcl b/library/tearoff.tcl index 053ebd9..70440ab 100644 --- a/library/tearoff.tcl +++ b/library/tearoff.tcl @@ -2,7 +2,7 @@ # # This file contains procedures that implement tear-off menus. # -# RCS: @(#) $Id: tearoff.tcl,v 1.7.4.1 2006/01/25 18:21:41 dgp Exp $ +# RCS: @(#) $Id: tearoff.tcl,v 1.7.4.2 2007/04/29 02:24:49 das Exp $ # # Copyright (c) 1994 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -37,6 +37,12 @@ proc ::tk::TearOffMenu {w {x 0} {y 0}} { } if {$y == 0} { set y [winfo rooty $w] + if {[tk windowingsystem] eq "aqua"} { + # Shift by height of tearoff entry minus height of window titlebar + catch {incr y [expr {[$w yposition 1] - 16}]} + # Avoid the native menu bar which sits on top of everything. + if {$y < 22} { set y 22 } + } } set parent [winfo parent $w] |