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:
Florian Festi 2016-07-09 10:46:14 +02:00
parent 8f0dc0330e
commit 325ae8a134
1 changed files with 1 additions and 1 deletions

View File

@ -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)