summaryrefslogtreecommitdiffstats
path: root/library/tearoff.tcl
diff options
context:
space:
mode:
authordas <das>2007-04-23 21:16:43 (GMT)
committerdas <das>2007-04-23 21:16:43 (GMT)
commit621a481580aa29b835a6bde3b6f83469140f1f57 (patch)
tree7e60574cc69f8e080f34339f6432bbe514851cde /library/tearoff.tcl
parent97873b5cca440eeaaf3787bc7d4fa5188b2510d3 (diff)
downloadtk-621a481580aa29b835a6bde3b6f83469140f1f57.zip
tk-621a481580aa29b835a6bde3b6f83469140f1f57.tar.gz
tk-621a481580aa29b835a6bde3b6f83469140f1f57.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.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/tearoff.tcl b/library/tearoff.tcl
index ae74389..9a8bd28 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.10 2005/07/25 09:06:00 dkf Exp $
+# RCS: @(#) $Id: tearoff.tcl,v 1.11 2007/04/23 21:16:43 das Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -38,8 +38,10 @@ 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 < 20} { set y 20 }
+ if {$y < 22} { set y 22 }
}
}