Skip to content

Commit 1eeb8f9

Browse files
committed
[ui] NodeActions: Make sure position is correct when width change
1 parent 739872b commit 1eeb8f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

meshroom/ui/qml/Controls/NodeActions.qml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ Item {
8282
y = nodeScreenY - height - headerOffset
8383
}
8484

85+
onWidthChanged: {
86+
updatePosition()
87+
}
88+
8589
// Update position when the user moves on the graph
8690
Connections {
8791
target: root.draggable
@@ -163,9 +167,9 @@ Item {
163167

164168
// Set initial state & position
165169
onSelectedNodeDelegateChanged: {
166-
updatePosition()
167170
if (actionHeader.selectedNode) {
168171
actionHeader.updateProperties(actionHeader.selectedNode)
172+
Qt.callLater(actionHeader.updatePosition)
169173
}
170174
}
171175

0 commit comments

Comments
 (0)