threads / patch / 21221

v2git-gui: Fixed diff pane height for shorter screen height

Subject: [PATCH v2] git-gui: Fixed diff pane height for shorter screen height

## tl;dr

One message between Oct 13, 2009 and Oct 13, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Vietor Liu· Oct 13, 2009, 02:28 UTC · lore

When the screen height is short(e.g. Asus EeePC 1024x600), the partial commit pane will hide. This patch adjust the minimum height of the diff pane, allowing the overall window to be shorter and still display the entire commit pane.

Signed-off-by: Vietor Liu <vietor@vxwo.org>
---
 git-gui.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to git-gui.sh +1 −1
diff --git a/git-gui.sh b/git-gui.sh
index 09b2720..037a1f2 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3083,7 +3083,7 @@ frame .vpane.lower.diff.body
 set ui_diff .vpane.lower.diff.body.t
 text $ui_diff -background white -foreground black \
 	-borderwidth 0 \
-	-width 80 -height 15 -wrap none \
+	-width 80 -height 5 -wrap none \
 	-font font_diff \
 	-xscrollcommand {.vpane.lower.diff.body.sbx set} \
 	-yscrollcommand {.vpane.lower.diff.body.sby set} \
-- 
1.6.5

← back to recent threads