pull/106/head
Cory ODaniel 5 years ago
parent 1d04713e1c
commit 7ecb319933

@ -271,7 +271,6 @@ class Node:
# Generates a hash for identifying a node.
self._hash = self._rand_hash()
self.label = label
self.attrs.update({"URL": URL, "tooltip": tooltip})
# fmt: off
# If a node has an icon, increase the height slightly to avoid
@ -285,6 +284,8 @@ class Node:
} if self._icon else {}
# fmt: on
self.attrs.update({"URL": URL, "tooltip": tooltip})
# Node must be belong to a diagrams.
self._diagram = getdiagram()
if self._diagram is None:

Loading…
Cancel
Save