Skip to content

Commit ea337dc

Browse files
Malcoholpaceholder
authored andcommitted
Account for extra port spacing when positioning expanded widgets
1 parent 4be7ed0 commit ea337dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DefaultHorizontalNodeGeometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ QPointF DefaultHorizontalNodeGeometry::widgetPosition(NodeId const nodeId) const
167167
// place it immediately after the caption.
168168
if (w->sizePolicy().verticalPolicy() & QSizePolicy::ExpandFlag) {
169169
return QPointF(2.0 * _portSpasing + maxPortsTextAdvance(nodeId, PortType::In),
170-
captionHeight);
170+
_portSpasing + captionHeight);
171171
} else {
172172
return QPointF(2.0 * _portSpasing + maxPortsTextAdvance(nodeId, PortType::In),
173173
(captionHeight + size.height() - w->height()) / 2.0);

0 commit comments

Comments
 (0)