From: Michael Gernoth Date: Mon, 14 Jan 2008 12:13:00 +0000 (+0100) Subject: resize editor when resizing window X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/2b8964762fece215b12e606abfb75c325f93e27e?hp=e7d465f261b2c0b34112a9779d27366a0beaa292 resize editor when resizing window --- diff --git a/res/whead.tcl b/res/whead.tcl index 3cb3ced..f9b689e 100644 --- a/res/whead.tcl +++ b/res/whead.tcl @@ -78,10 +78,10 @@ global NoticePanelHeight set visual [winfo screenvisual $win] set depth [winfo screendepth $win] -#set screenwidth [winfo screenwidth $win] -#set screenheight [winfo screenheight $win] -set screenwidth 1200 -set screenheight 900 +set screenwidth [winfo screenwidth $win] +set screenheight [winfo screenheight $win] +#set screenwidth 1200 +#set screenheight 900 if {!(("$visual" == "pseudocolor") || ("$visual" == "truecolor") || @@ -684,8 +684,8 @@ pack append $win.col1\ place configure $win.col2\ -x [expr "$HeadPanelWidth + 5"]\ -y 0\ - -width [expr "($screenwidth - $HeadPanelWidth) - 5"]\ - -height $screenheight + -relheight 1.0\ + -relwidth 1.0 #pack append $win.col2\ # $win.col2.x1 {top frame nw fillx} \