Make flex centered
Leave one space before and after the first/last cut. Resolves https://github.com/florianfesti/boxes/issues/11
This commit is contained in:
parent
8f0dc0330e
commit
325ae8a134
|
@ -1104,7 +1104,7 @@ class FlexEdge(BaseEdge):
|
|||
sections = int((h-connection) // width)
|
||||
sheight = ((h-connection) / sections)-connection
|
||||
|
||||
for i in range(lines):
|
||||
for i in range(1, lines):
|
||||
pos = i*dist + leftover/2
|
||||
if i % 2:
|
||||
self.ctx.move_to(pos, 0)
|
||||
|
|
Loading…
Reference in New Issue