tuikit/core/container.py
changeset 92 b97c4e25ed6d
parent 91 de80e140b0ec
child 93 c1e79acb9fcb
--- a/tuikit/core/container.py	Wed Mar 26 09:08:10 2014 +0100
+++ b/tuikit/core/container.py	Wed Mar 26 21:26:39 2014 +0100
@@ -24,10 +24,10 @@
     def draw(self, buffer, x=0, y=0):
         """Draw child widgets."""
         for child in self.children:
-            with buffer.clip(x, y, child.width, child.height):
-                child.draw(buffer,
-                           x + child.x,
-                           y + child.y)
+            cx = x + child.x
+            cy = y + child.y
+            with buffer.clip(cx, cy, child.width, child.height):
+                child.draw(buffer, cx, cy)
 
     def set_theme(self, theme):
         Widget.set_theme(self, theme)