Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2020-10-03 08:20:33 +0300
committerPaul Mackerras <paulus@ozlabs.org>2020-10-03 08:20:33 +0300
commit6cd80496e9d3694825ec941663b65c9516102289 (patch)
tree7670adf877af118d1796131107b8cca1bb7af41f /gitk-git
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 <paulus@ozlabs.org>
Diffstat (limited to 'gitk-git')
0 files changed, 0 insertions, 0 deletions