diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-02-16 13:50:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 13:50:50 +0100 |
commit | c4eedec9d59feb3942af5a425bd38611a386c3c9 (patch) | |
tree | 8e5b6fe95cfd5a71e82b0cc4e03d0534a792b159 /pkg/gui/context/submodules_context.go | |
parent | 1081c45397d9bf6741fc5519ad1e3d736960e40a (diff) | |
parent | 2b9cb3a640fda4ae5a3df5f14fc971bd8881307e (diff) |
Fix initial scroll bar size again (#3285)
After #3283 we need to read more lines initially so that the scrollbar
goes to its minimal height of 1 for long diffs. Without this, it would
start with a height of 2 and then become smaller after you scroll down
half the window height.
It does mean that we need to read twice the number of lines initially
(up to the limit of 5000). I think it's worth it, I find the incorrect
initial size confusing.
Diffstat (limited to 'pkg/gui/context/submodules_context.go')
0 files changed, 0 insertions, 0 deletions