Skip to content

Commit 0a3a931

Browse files
committed
Fix horizontal node size when captions are too long
1 parent 2a6e0d6 commit 0a3a931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DefaultHorizontalNodeGeometry.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ void DefaultHorizontalNodeGeometry::recomputeSize(NodeId const nodeId) const
5252
width += w->width();
5353
}
5454

55-
width = std::max(width, static_cast<unsigned int>(capRect.width()));
55+
width = std::max(width,
56+
static_cast<unsigned int>(capRect.width()) + 2 * _portSpasing);
5657

5758
QSize size(width, height);
5859

0 commit comments

Comments
 (0)