Skip to content

Commit

Permalink
fix: remove backward incompatible 'imagepos' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mingrammer committed Feb 11, 2020
1 parent eaa2bb2 commit a2dcb81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions diagrams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class Diagram:
"width": "1.4",
"height": "1.4",
"labelloc": "b",
"imagepos": "tc",
# imagepos attribute is not backward compatible
# "imagepos": "tc",
"imagescale": "true",
"fontname": "Sans-Serif",
"fontsize": "13",
Expand Down Expand Up @@ -252,7 +253,7 @@ def __init__(self, label: str = ""):
# that label being spanned between icon image and white space.
self.attrs = {
"shape": "none",
"height": "1.7",
"height": "1.9",
"image": self._load_icon(),
} if self._icon else {}
# fmt: on
Expand Down

0 comments on commit a2dcb81

Please sign in to comment.