]> Pileus Git - ~andy/git/commitdiff
git-gui: Correct resizing of remote branch delete dialog
authorShawn O. Pearce <spearce@spearce.org>
Wed, 4 Jul 2007 18:06:28 +0000 (14:06 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 5 Jul 2007 03:16:20 +0000 (23:16 -0400)
The status field of the remote branch delete dialog was marked to
expand, which meant that if the user grew the window vertically
most of the new vertical height was given to the status field and
not to the branch list.  Since the status field is just a single
line of text there is no reason for it to gain additional height,
instead we should make sure all additional height goes to the
branch list.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/remote_branch_delete.tcl

index b83e1b6315e856785341f083f121a02439682e09..d7e2b8db4549cf81c0fd82eadb8c3ea88fe6927f 100644 (file)
@@ -98,10 +98,10 @@ constructor dialog {} {
        button $w.heads.footer.rescan \
                -text {Rescan} \
                -command [cb _rescan]
-       pack $w.heads.footer.status -side left -fill x -expand 1
+       pack $w.heads.footer.status -side left -fill x
        pack $w.heads.footer.rescan -side right
 
-       pack $w.heads.footer -side bottom -fill x -expand 1
+       pack $w.heads.footer -side bottom -fill x
        pack $w.heads.sby -side right -fill y
        pack $w.heads.l -side left -fill both -expand 1
        pack $w.heads -fill both -expand 1 -pady 5 -padx 5