Skip to content

Commit 2aad4f8

Browse files
committed
screenshot update & node icon layout fix
1 parent acb170d commit 2aad4f8

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

NodeGraphQt/base/node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def __init__(self, qgraphics_views=None):
6262
_NodeItem = qgraphics_views.get(NODE_LAYOUT_VERTICAL)
6363
elif NODE_LAYOUT_DIRECTION is NODE_LAYOUT_HORIZONTAL:
6464
_NodeItem = qgraphics_views.get(NODE_LAYOUT_HORIZONTAL)
65+
6566
if _NodeItem is None:
6667
raise ValueError(
6768
'qgraphics item for the {} node layout can\'t be None!'.format({

NodeGraphQt/qgraphics/node_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def draw_node(self):
939939
# align label text
940940
self.align_label(h_offset=6)
941941
# align icon
942-
self.align_icon(v_offset=4)
942+
self.align_icon(h_offset=6, v_offset=4)
943943
# arrange input and output ports.
944944
self.align_ports()
945945
# arrange node widgets

docs/_images/vertical_layout.png

47.8 KB
Loading

0 commit comments

Comments
 (0)