path: root/gitk-git/gitk
diff options
authorPaul Mackerras <>2020-10-03 05:20:33 (GMT)
committerPaul Mackerras <>2020-10-03 05:20:33 (GMT)
commit6cd80496e9d3694825ec941663b65c9516102289 (patch)
tree7670adf877af118d1796131107b8cca1bb7af41f /gitk-git/gitk
parente244588eb6ceef86a6a183b3bb032960e26033bb (diff)
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 <>
Diffstat (limited to 'gitk-git/gitk')
0 files changed, 0 insertions, 0 deletions