From 45109afcc6821713cea286b4085f2438427567ac Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sun, 11 May 2014 22:40:36 +0200 Subject: [PATCH] Apply self.pos to TextBoxWidget rendering. --- naja/widgets/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 9ecd0db..74ca641 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -90,9 +90,9 @@ class TextBoxWidget(TextWidget): def draw(self, surface): self.surface.fill(self.bg_colour) - y = 0 + y = self.pos[1] for line in self.lines: - surface.blit(line, (self.padding, y + self.padding)) + surface.blit(line, (self.pos[0] + self.padding, y + self.padding)) y += line.get_rect().height self.text_rect = surface.get_rect() if not self.size: -- 2.34.1