summaryrefslogtreecommitdiffstats
path: root/library/panedwindow.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-05-03 19:36:20 (GMT)
committerhobbs <hobbs>2004-05-03 19:36:20 (GMT)
commitc0570464f7d7778b4ce093ae08a77e784f6385b7 (patch)
tree448d478a9db786a33ce10422d1e5618cf7542df4 /library/panedwindow.tcl
parent656c3e9322cd07ef47c82de88d51080c09adab60 (diff)
downloadtk-c0570464f7d7778b4ce093ae08a77e784f6385b7.zip
tk-c0570464f7d7778b4ce093ae08a77e784f6385b7.tar.gz
tk-c0570464f7d7778b4ce093ae08a77e784f6385b7.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/panedwindow.tcl')
-rw-r--r--library/panedwindow.tcl4
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
}
}
}