gitk lower pane (commit and files view) scrollbar extends past gitk window

7 messages, 3 authors, 2016-06-15 · open the first message on its own page

gitk lower pane (commit and files view) scrollbar extends past gitk window

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:30

In gitk from the current 'next' branch, post git version 1.4.0 
(blob ba4644f) scrollbar for lower pane, i.e. for commitdiff and files
(Comments) views extends past the bottom of the gitk window. Therefore 
I cannnot see lower part of commit diff if it is larger than window height.

gitk window has height lower than 700.

The upper pane, i.e. history graph scrollbar is correct, and works as it
should.

This is regression from git 1.3.0, where gitk works correctly.


Below ascii art trying to describe situation.

  _                                _                                  _
  ^  .. upper scrollbar arrow .... ^                                  ^
  #                                #                                  |
  #  .... position indicator ..... #                                  |
  |                                |                                  |
  |                                |    scrolling past window edge -> #
  |      bottom of gitk window --> =                                  =
  v                                  <-- no lower scrollbar arrow
  =  <-- bottom of gitk window

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

Re: gitk lower pane (commit and files view) scrollbar extends past gitk window

From: Edgar Toernig <hidden>
Date: 2016-06-15 22:42:30

Jakub Narebski wrote:
In gitk from the current 'next' branch, post git version 1.4.0 
(blob ba4644f) scrollbar for lower pane, i.e. for commitdiff and files
(Comments) views extends past the bottom of the gitk window. Therefore 
I cannnot see lower part of commit diff if it is larger than window height.
Yes, and the search field at the bottom is invisible too.  Removing
line 431:

        .ctop conf -width $geometry(width) -height $geometry(height)

seems to fix it and the window still gets the right size.

Ciao, ET.

[PATCH] gitweb: whitespace cleanup around '='

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:30

Signed-off-by: Jakub Narebski <redacted>


---

 gitweb/gitweb.cgi |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

82c8812870e9c40fd495e9c3e2eae0eb78ac2759
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index e044c61..adc4a42 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -326,7 +326,7 @@ EOF
 		} elsif (defined $hash) {
 			$search_hash = $hash;
 		} else {
-			$search_hash  = "HEAD";
+			$search_hash = "HEAD";
 		}
 		$cgi->param("a", "search");
 		$cgi->param("h", $search_hash);
@@ -1766,8 +1766,8 @@ sub git_opml {
 		}
 
 		my $path = esc_html(chop_str($proj{'path'}, 25, 5));
-		my $rss =  "$my_url?p=$proj{'path'};a=rss";
-		my $html =  "$my_url?p=$proj{'path'};a=summary";
+		my $rss  = "$my_url?p=$proj{'path'};a=rss";
+		my $html = "$my_url?p=$proj{'path'};a=summary";
 		print "<outline type=\"rss\" text=\"$path\" title=\"$path\" xmlUrl=\"$rss\" htmlUrl=\"$html\"/>\n";
 	}
 	print "</outline>\n".
@@ -1942,7 +1942,7 @@ sub git_commit {
 	      "<td class=\"link\">" . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=tree;h=$co{'tree'};hb=$hash")}, "tree") .
 	      "</td>" .
 	      "</tr>\n";
-	my $parents  = $co{'parents'};
+	my $parents = $co{'parents'};
 	foreach my $par (@$parents) {
 		print "<tr>" .
 		      "<td>parent</td>" .
-- 
1.3.0

Re: [PATCH] gitweb: whitespace cleanup around '='

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:30

I'm sorry, wrong In-Reply-To given to git-send-email.
It should be reply to [off-list ref]

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

Re: gitk lower pane (commit and files view) scrollbar extends past gitk window

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:30

On 6/22/06, Edgar Toernig [off-list ref] wrote:
Jakub Narebski wrote:
quoted
In gitk from the current 'next' branch, post git version 1.4.0
(blob ba4644f) scrollbar for lower pane, i.e. for commitdiff and files
(Comments) views extends past the bottom of the gitk window. Therefore
I cannnot see lower part of commit diff if it is larger than window height.
Yes, and the search field at the bottom is invisible too.  Removing
line 431:

        .ctop conf -width $geometry(width) -height $geometry(height)

seems to fix it and the window still gets the right size.
No, it does not. It gets the default geometry, not the one it had last time.

[WORKAROUND] gitk lower pane scrollbar extends past gitk window

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:30

Alex Riesen wrote:
On 6/22/06, Edgar Toernig [off-list ref] wrote:
quoted
Jakub Narebski wrote:
quoted
In gitk from the current 'next' branch, post git version 1.4.0
(blob ba4644f) scrollbar for lower pane, i.e. for commitdiff and files
(Comments) views extends past the bottom of the gitk window. Therefore
I cannnot see lower part of commit diff if it is larger than 
window height. 
Yes, and the search field at the bottom is invisible too.  Removing
line 431:

        .ctop conf -width $geometry(width) -height $geometry(height)

seems to fix it and the window still gets the right size.
No, it does not. It gets the default geometry, not the one it had last time.
Now I see. It is the case when I used gitk from a computer with a desktop
with larger screen height, then on computer with screen height smaller than 
gitk height was I had mentioned problem.

Workaround for now is to delete old geometry info from ~/.gitk file 
(or just delete whole file).

I don't know Tcl/Tk to make proper fix, i.e. check if restored size is not
larger than available screen size, and use min(saved size, screen size).
Another improvement would be to save the fact that gitk window is maximized
as a symbol, e.g. as equivalent of 

  set geometry(height) screen(height)

in ~/.gitk

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

Re: [WORKAROUND] gitk lower pane scrollbar extends past gitk window

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:30

It looks like gitk incorrectly saves the geometry in ~/.gitk
I have to remove it before running gitk (well, it would be 
enough to remove geometry section).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help