Line column in TortoiseGitUDiff might get cut off
What steps will reproduce the problem?
- Open a patch with more than 99.999 lines of code or zoom in on a patch with less lines.
- Scroll to the bottom of the diff dialog.
What is the expected output? What do you see instead?
The line numbers are clipped at the left edge of the window, because the width of the line column is fixed.
The width of the column line should be resized based on the width of the last line of the patch.
What version of TortoiseGit and Git are you using? On what operating system?
TortoiseGit: 2.8.2.0
git: 2.18.0.windows.1
OS: Windows 10 Pro with updates from today
Please provide any additional information below.
Having a patch with more than 99.999 lines is obviously an edge case, zooming in is probably more common. I assume it shouldn't be too hard to calculate the width in pixels the last line number requires.
Resizing the column width also has the positive side effect that the user can see a little bit more of the changes on patches with a smaller numer of lines without having to scroll. Alternatively, the column may have a minimal width to provide a consistent look for the common case.