Skip to content

Commit 78f6b97

Browse files
committed
[ui] NodeActions : keep it on the screen if the node cross the top bound
1 parent ecbcbed commit 78f6b97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

meshroom/ui/qml/Controls/NodeActions.qml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ Item {
8080
// Position header above the node (fixed offset in screen pixels)
8181
x = nodeScreenX + (selectedNodeDelegate.width * draggable.scale - width) / 2
8282
y = nodeScreenY - height - headerOffset
83+
if (y < 0) {
84+
y = 0
85+
}
8386
}
8487

8588
onWidthChanged: {

0 commit comments

Comments
 (0)