summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-12-15 23:42:31 +0100
committerDavid Lamparter <equinox@diac24.net>2013-12-15 23:42:31 +0100
commit401786aabef6e825b3a3d7c764ad9d954c840eca (patch)
treef33f2f9acbbf272d20a4622015e93a7f30151329
parentf814fbc5beea9087026e00b6ae6393492d4436c8 (diff)
bug in VSpace component
-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