flexbox4: Be more generous when merging flex on top

This commit is contained in:
Florian Festi 2016-07-09 10:52:01 +02:00
parent ea6f45a24b
commit 281c80b4e9
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ class FlexBox(Boxes):
x, y, h, r = self.x, self.y, self.h, self.radius
self.edges["F"](y-r, False)
if (x-2*r < 0.1):
self.edges["X"](2*self.c4, h+2*self.thickness)
if (x-2*r < self.thickness):
self.edges["X"](2*self.c4+x-2*r, h+2*self.thickness)
else:
self.edges["X"](self.c4, h+2*self.thickness)
self.edge(x-2*r)