diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2020-10-03 15:20:33 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2020-10-03 15:20:33 +1000 |
commit | 6cd80496e9d3694825ec941663b65c9516102289 (patch) | |
tree | 7670adf877af118d1796131107b8cca1bb7af41f /builtin | |
parent | gitk: replace tabs with spaces (diff) | |
download | tgif-6cd80496e9d3694825ec941663b65c9516102289.tar.xz |
gitk: Resize panes correctly when reducing window size
The resizeclistpanes and resizecdetpanes procedures attempt to keep
the horizontal proportions of the panes of the gitk window
approximately constant when the gitk window is resized. However, if
the size is reduced enough that an existing sash position would go
outside the window, Tk moves the sash to the left to keep it inside
the window (without moving other sash positions to keep the
proportions). This happens before these resize procedures get
control, and so they work with incorrect proportions.
To fix this, we record the sash positions we set previously and use
those previously-set sash positions rather than the current sash
positions when computing the proportions.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions