1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 04:41:34 +03:00
wezterm/bintree/src
Wez Furlong c5efd94bb8 wezterm: improve pane resize logic
This uses a similar approach to that used by tmux; when resizing,
a size delta is computed in each axis and that value is distributed
across the splits in that dimension.

For a small resize by 1 cell this tends to bias towards adjusting
the top/left node.

For a large resize (eg: maximizing/restoring) the distribution tends
to share across the splits in that dimension, effectively scaling
them approximately proportionally, more or less preserving the relative
scale of the splits.

refs: https://github.com/wez/wezterm/issues/157#issuecomment-699672914
2020-09-27 16:07:08 -07:00
..
lib.rs wezterm: improve pane resize logic 2020-09-27 16:07:08 -07:00