git-gui: Start blame windows as tall as possible
[gitweb.git] / lib / blame.tcl
index b5236548152043c5ec29997a791f5a51fa3f56cb..77abd8291dda6f4a4f2be5df6444f4d7c07aaf40 100644 (file)
@@ -304,8 +304,9 @@ constructor new {i_commit i_path} {
 
        set req_w [winfo reqwidth  $top]
        set req_h [winfo reqheight $top]
+       set scr_h [expr {[winfo screenheight $top] - 100}]
        if {$req_w < 600} {set req_w 600}
-       if {$req_h < 400} {set req_h 400}
+       if {$req_h < $scr_h} {set req_h $scr_h}
        set g "${req_w}x${req_h}"
        wm geometry $top $g
        update