fixed ignored height and width arguments

issue #17 fix
pull/18/head
derVedro 2017-03-31 00:17:59 +02:00 committed by GitHub
parent 7be111bba8
commit f72987d69b
1 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,9 @@ def disvg(paths=None, colors=None,
# Create an SVG file # Create an SVG file
if svg_attributes: if svg_attributes:
dwg = Drawing(filename=filename, **svg_attributes) szx = svg_attributes.get("height", "100%")
szy = svg_attributes.get("width", "100%")
dwg = Drawing(filename=filename, size=(szx, szy), **svg_attributes)
else: else:
dwg = Drawing(filename=filename, size=(szx, szy), viewBox=viewbox) dwg = Drawing(filename=filename, size=(szx, szy), viewBox=viewbox)