Skip to content

Commit cf16a9d

Browse files
committed
[ui] GraphEditor: Updated bounding box to look at the actual node item rather than the loader delegate
1 parent 25df666 commit cf16a9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meshroom/ui/qml/GraphEditor/GraphEditor.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,9 +1386,11 @@ Item {
13861386
if (first === null) {
13871387
return Qt.rect(0, 0, 0, 0)
13881388
}
1389+
// Fetch the actual delegate item from the Loader
1390+
first = first.item;
13891391
var bbox = Qt.rect(first.x, first.y, first.x + first.width, first.y + first.height)
13901392
for (var i = 0; i < root.graph.nodes.count; ++i) {
1391-
var item = nodeRepeater.itemAt(i)
1393+
var item = nodeRepeater.itemAt(i).item
13921394
bbox.x = Math.min(bbox.x, item.x)
13931395
bbox.y = Math.min(bbox.y, item.y)
13941396
bbox.width = Math.max(bbox.width, item.x + item.width)

0 commit comments

Comments
 (0)