From: Simon Cross Date: Sun, 11 May 2014 20:40:36 +0000 (+0200) Subject: Apply self.pos to TextBoxWidget rendering. X-Git-Tag: 0.1~386 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=45109afcc6821713cea286b4085f2438427567ac Apply self.pos to TextBoxWidget rendering. --- 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: