Final part of fix for getting two different resizes of the terminal which vim wasn't handling.
This commit is contained in:
parent
a0ba2cf969
commit
1d63446d03
@ -472,7 +472,7 @@ class Paned(Container):
|
||||
self.set_position(self.get_position())
|
||||
|
||||
def position_by_ratio(self, total_size, handle_size, ratio):
|
||||
non_separator_size = max(total_size, handle_size, 0)
|
||||
non_separator_size = max(total_size - handle_size, 0)
|
||||
ratio = min(max(ratio, 0.0), 1.0)
|
||||
return int(round(non_separator_size * ratio))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user