From 7d4f395a370843b4e6758493547bcf9288a7eb55 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 May 2014 00:22:50 +0200 Subject: [PATCH] don't discard width padding --- naja/widgets/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 0521e9b..d753e8a 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -81,7 +81,7 @@ class TextBoxWidget(TextWidget): line_surface = self.render_line(line) line_rect = line_surface.get_rect() rendered_lines.append(line_surface) - width = max(width, line_rect.width) + width = max(width, line_rect.width + self.padding) height += line_rect.height self.surface = pygame.surface.Surface((width, height), -- 2.34.1