Skip to content

Commit 95dcfa3

Browse files
Twiinzspearce
authored andcommitted
git-gui: Vertically align textboxes with labels
In git-gui after clicking either on 'Create New Repository' or 'Open Existing Repository' the form elements aren't centered like they are pretty much everywhere else in the app. At least when ran on a mac, haven't checked on other platforms. Using grid instead of pack seems to fix this. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 7f83aa2 commit 95dcfa3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/choose_repository.tcl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,7 @@ method _do_new {} {
388388
-command [cb _new_local_path]
389389
set w_localpath $w_body.where.t
390390

391-
pack $w_body.where.b -side right
392-
pack $w_body.where.l -side left
393-
pack $w_body.where.t -fill x
391+
grid $w_body.where.l $w_body.where.t $w_body.where.b -sticky ew
394392
pack $w_body.where -fill x
395393

396394
trace add variable @local_path write [cb _write_local_path]
@@ -987,9 +985,7 @@ method _do_open {} {
987985
-text [mc "Browse"] \
988986
-command [cb _open_local_path]
989987

990-
pack $w_body.where.b -side right
991-
pack $w_body.where.l -side left
992-
pack $w_body.where.t -fill x
988+
grid $w_body.where.l $w_body.where.t $w_body.where.b -sticky ew
993989
pack $w_body.where -fill x
994990

995991
trace add variable @local_path write [cb _write_local_path]

0 commit comments

Comments
 (0)