summaryrefslogtreecommitdiff
path: root/t/perf/p5304-prune.sh
diff options
context:
space:
mode:
authorLibravatar Paul Mackerras <paulus@ozlabs.org>2020-10-03 15:20:33 +1000
committerLibravatar Paul Mackerras <paulus@ozlabs.org>2020-10-03 15:20:33 +1000
commit6cd80496e9d3694825ec941663b65c9516102289 (patch)
tree7670adf877af118d1796131107b8cca1bb7af41f /t/perf/p5304-prune.sh
parentgitk: replace tabs with spaces (diff)
downloadtgif-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 't/perf/p5304-prune.sh')
0 files changed, 0 insertions, 0 deletions