projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SelectorWidget
[naja.git]
/
naja
/
widgets
/
text.py
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index 9ecd0db47322287e214a0682b063a4b18ee2c9cf..74ca641bf7c1186144c94a2b03123b4e078677ec 100644
(file)
--- 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)
def draw(self, surface):
self.surface.fill(self.bg_colour)
- y =
0
+ y =
self.pos[1]
for line in self.lines:
for line in self.lines:
- surface.blit(line, (self.padding, y + self.padding))
+ surface.blit(line, (self.p
os[0] + self.p
adding, y + self.padding))
y += line.get_rect().height
self.text_rect = surface.get_rect()
if not self.size:
y += line.get_rect().height
self.text_rect = surface.get_rect()
if not self.size: