From: Neil Date: Wed, 14 May 2014 22:22:50 +0000 (+0200) Subject: don't discard width padding X-Git-Tag: 0.1~293 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=7d4f395a370843b4e6758493547bcf9288a7eb55;p=naja.git don't discard width padding --- 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),