From fb7eaecb42b40e1a0863fc76f5fad49d1f874120 Mon Sep 17 00:00:00 2001 From: Doman Date: Sun, 7 Aug 2022 10:41:54 +0200 Subject: [PATCH] min width now works great --- fasttyper/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fasttyper/components.py b/fasttyper/components.py index 4502219..b85ef71 100644 --- a/fasttyper/components.py +++ b/fasttyper/components.py @@ -90,7 +90,7 @@ class BorderedBox(WindowComponent): pos_y = int(self.pos_y * self.maxy) - 1 if self.width < self.min_width: - width = min(self.maxx, self.min_width) + width = min(self.maxx - 2, self.min_width) self.width = width pos_x = int(max(0, (self.maxx - width) / 2 - 1))