diff options
author | David Lamparter <equinox@diac24.net> | 2013-12-15 23:42:31 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2013-12-15 23:42:31 +0100 |
commit | 401786aabef6e825b3a3d7c764ad9d954c840eca (patch) | |
tree | f33f2f9acbbf272d20a4622015e93a7f30151329 | |
parent | f814fbc5beea9087026e00b6ae6393492d4436c8 (diff) |
bug in VSpace component
-rw-r--r-- | ptlayout.py | 2 |
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 |