Skip to content

Commit

Permalink
[ui] Resize node when ports change
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 10, 2024
1 parent 240752b commit c760e7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugins/score-lib-process/Process/Dataflow/NodeItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ NodeItem::NodeItem(
if(p != pos())
setPos(p);
});

auto on_sizeChanged = [this] {
updateSize();
updateZoomRatio();
updateTitlePos();
};
connect(&process, &Process::ProcessModel::inletsChanged, this, on_sizeChanged);
connect(&process, &Process::ProcessModel::outletsChanged, this, on_sizeChanged);
}

void NodeItem::createWithDecorations()
Expand Down

0 comments on commit c760e7e

Please sign in to comment.