From c0570464f7d7778b4ce093ae08a77e784f6385b7 Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 3 May 2004 19:36:20 +0000 Subject: * library/panedwindow.tcl (MarkSash): call DragSash to stop sash jump when B1 is pressed and released without moving. [Bug #932155] --- ChangeLog | 3 +++ library/panedwindow.tcl | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 24830ab..2652e3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-05-03 Jeff Hobbs + * library/panedwindow.tcl (MarkSash): call DragSash to stop sash + jump when B1 is pressed and released without moving. [Bug #932155] + * tests/panedwindow.test: panedwindow-25.1 * generic/tkPanedWindow.c (Unlink): clean up -before/-after refs to a slave when removing it. [Bug #928413] (griffin) 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 { ::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 } } } -- cgit v0.12