Skip to content

Commit 56c886e

Browse files
committed
Account for extra port spacing when positioning expanded widgets
1 parent 34b6f81 commit 56c886e

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
@@ -155,7 +155,7 @@ QPointF DefaultHorizontalNodeGeometry::widgetPosition(NodeId const nodeId) const
155155
// place it immediately after the caption.
156156
if (w->sizePolicy().verticalPolicy() & QSizePolicy::ExpandFlag) {
157157
return QPointF(2.0 * _portSpasing + maxPortsTextAdvance(nodeId, PortType::In),
158-
captionHeight);
158+
_portSpasing + captionHeight);
159159
} else {
160160
return QPointF(2.0 * _portSpasing + maxPortsTextAdvance(nodeId, PortType::In),
161161
(captionHeight + size.height() - w->height()) / 2.0);

0 commit comments

Comments
 (0)