diff --git a/app/gui/view/graph-editor/src/component/node/output/area.rs b/app/gui/view/graph-editor/src/component/node/output/area.rs index da140a7108a..6f04f6965a2 100644 --- a/app/gui/view/graph-editor/src/component/node/output/area.rs +++ b/app/gui/view/graph-editor/src/component/node/output/area.rs @@ -148,6 +148,7 @@ ensogl::define_endpoints! { expression_label_visibility (bool), tooltip (tooltip::Style), view_mode (view::Mode), + size (Vector2), } } @@ -330,11 +331,6 @@ impl Model { #[profile(Debug)] fn set_size(&self, size: Vector2) { self.ports.set_x(size.x / 2.0); - self.traverse_borrowed_expression_mut(|is_a_port, node, _| { - if is_a_port { - node.payload_mut().set_size(size) - } - }) } #[profile(Debug)] @@ -379,10 +375,12 @@ impl Model { port_frp.set_type_label_visibility <+ self.frp.type_label_visibility; self.frp.source.tooltip <+ port_frp.tooltip; port_frp.set_view_mode <+ self.frp.view_mode; + port_frp.set_size <+ self.frp.size; } port_frp.set_type_label_visibility.emit(self.frp.type_label_visibility.value()); port_frp.set_view_mode.emit(self.frp.view_mode.value()); + port_frp.set_size.emit(self.frp.size.value()); self.ports.add_child(&port_shape); port_index += 1; } @@ -483,6 +481,7 @@ impl Area { frp.source.port_size_multiplier <+ hysteretic_transition.value; eval frp.set_size ((t) model.set_size(*t)); + frp.source.size <+ frp.set_size; frp.source.type_label_visibility <+ frp.set_type_label_visibility;