From 401786aabef6e825b3a3d7c764ad9d954c840eca Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 15 Dec 2013 23:42:31 +0100 Subject: bug in VSpace component --- ptlayout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1