From 1277464c739faf936a926e48a20438c1a00a7d9c Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Fri, 10 Feb 2017 06:45:40 +0100 Subject: [PATCH] Followup to rev. 1722 to stop panes nudging on performing a normal split due to the ratio float not accounting for the handle size. --- terminatorlib/paned.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index b877654e..f09f7f1f 100755 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -477,7 +477,7 @@ class Paned(Container): return int(round(non_separator_size * ratio)) def ratio_by_position(self, total_size, handle_size, position): - non_separator_size = max(total_size, handle_size, 0) + non_separator_size = max(total_size - handle_size, 0) if non_separator_size == 0: return None position = min(max(position, 0), non_separator_size)