diff options
author | hobbs <hobbs> | 2004-05-03 19:36:20 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-05-03 19:36:20 (GMT) |
commit | 0bfaa7885ed6b0db7be948ce5aa4d99877475bf9 (patch) | |
tree | 448d478a9db786a33ce10422d1e5618cf7542df4 /library | |
parent | 6c72f2eedb5564cb9b4a911d92ab6784afc9a5e9 (diff) | |
download | tk-0bfaa7885ed6b0db7be948ce5aa4d99877475bf9.zip tk-0bfaa7885ed6b0db7be948ce5aa4d99877475bf9.tar.gz tk-0bfaa7885ed6b0db7be948ce5aa4d99877475bf9.tar.bz2 |
* library/panedwindow.tcl (MarkSash): call DragSash to stop sash
jump when B1 is pressed and released without moving. [Bug #932155]
Diffstat (limited to 'library')
-rw-r--r-- | library/panedwindow.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/panedwindow.tcl b/library/panedwindow.tcl index 7b7c25a..233a664 100644 --- a/library/panedwindow.tcl +++ b/library/panedwindow.tcl @@ -3,7 +3,7 @@ # This file defines the default bindings for Tk panedwindow widgets and # provides procedures that help in implementing those bindings. # -# RCS: @(#) $Id: panedwindow.tcl,v 1.8 2003/07/28 21:31:06 patthoyts Exp $ +# RCS: @(#) $Id: panedwindow.tcl,v 1.9 2004/05/03 19:36:20 hobbs Exp $ # bind Panedwindow <Button-1> { ::tk::panedwindow::MarkSash %W %x %y 1 } @@ -45,6 +45,8 @@ proc ::tk::panedwindow::MarkSash {w x y proxy} { foreach {sx sy} [$w sash coord $index] break set ::tk::Priv(dx) [expr {$sx-$x}] set ::tk::Priv(dy) [expr {$sy-$y}] + # Do this to init the proxy location + DragSash $w $x $y $proxy } } } |