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>
Twiinz committed
May 19, 2008 at 00:01 UTC
95dcfa3633004da0049d3d0fa03f80589cbcaf31
1 file changed
+2
-6
lib/choose_repository.tcl
+2
-6
@@ -388,9 +388,7 @@ method _do_new {} {
388
-command [cb _new_local_path]
389
set w_localpath $w_body.where.t
390
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
392
pack $w_body.where -fill x
393
394
trace add variable @local_path write [cb _write_local_path]
@@ -987,9 +985,7 @@ method _do_open {} {
985
-text [mc "Browse"] \
986
-command [cb _open_local_path]
987
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
989
pack $w_body.where -fill x
990
991
trace add variable @local_path write [cb _write_local_path]