Fix .margin() for CompondEdge
This commit is contained in:
parent
a0be85764a
commit
f30221d265
|
@ -373,7 +373,7 @@ class CompoundEdge(BaseEdge):
|
|||
return self.types[-1].endwidth()
|
||||
|
||||
def margin(self):
|
||||
return max((e.margin() for e in self.types))
|
||||
return max((e.margin() + e.startwidth() for e in self.types)) - self.types[0].startwidth()
|
||||
|
||||
def __call__(self, length, **kw):
|
||||
if length and abs(length - self.length) > 1E-5:
|
||||
|
|
Loading…
Reference in New Issue