Skip to content

Commit e73c4df

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

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
@@ -1384,9 +1384,11 @@ Item {
13841384
if (first === null) {
13851385
return Qt.rect(0, 0, 0, 0)
13861386
}
1387+
// Fetch the actual delegate item from the Loader
1388+
first = first.item;
13871389
var bbox = Qt.rect(first.x, first.y, first.x + first.width, first.y + first.height)
13881390
for (var i = 0; i < root.graph.nodes.count; ++i) {
1389-
var item = nodeRepeater.itemAt(i)
1391+
var item = nodeRepeater.itemAt(i).item
13901392
bbox.x = Math.min(bbox.x, item.x)
13911393
bbox.y = Math.min(bbox.y, item.y)
13921394
bbox.width = Math.max(bbox.width, item.x + item.width)

0 commit comments

Comments
 (0)