From cac78bdea6589c809f22efe666bd367121c15aa3 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Mon, 14 Jan 2008 15:18:53 +0100 Subject: [PATCH] correctly resize editor window to be in sync with the mini map --- res/whead.tcl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/res/whead.tcl b/res/whead.tcl index f9b689e..8de2802 100644 --- a/res/whead.tcl +++ b/res/whead.tcl @@ -685,7 +685,16 @@ place configure $win.col2\ -x [expr "$HeadPanelWidth + 5"]\ -y 0\ -relheight 1.0\ - -relwidth 1.0 + -width [expr "($screenwidth - $HeadPanelWidth) - 5"] + +proc resizeeditor {win width} { + global HeadPanelWidth + + place configure $win.col2\ + -width [expr "($width - $HeadPanelWidth) - 5"] +} + +bind $win "resizeeditor $win %w" #pack append $win.col2\ # $win.col2.x1 {top frame nw fillx} \ -- 2.39.2