summaryrefslogtreecommitdiff
path: root/ptlayout.py
diff options
context:
space:
mode:
Diffstat (limited to 'ptlayout.py')
-rw-r--r--ptlayout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptlayout.py b/ptlayout.py
index 219052e..2d0a3ea 100644
--- a/ptlayout.py
+++ b/ptlayout.py
@@ -188,7 +188,7 @@ class PTLVStack(PTLContainer):
for i, k in enumerate(self._children):
vpos = int(h / float(len(self._children)) * i)
cctx.translate(0, vpos)
- cw = k.render(cctx, h)
+ cw = k.render(cctx, h / float(len(self._children)))
w = max(cw, w)
cctx.translate(0, -vpos)
return w