Skip to content

Commit

Permalink
🧰: update scene graph in response to layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
merryman authored and linusha committed Mar 4, 2024
1 parent b441a99 commit eca0339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lively.ide/studio/controls/layout.cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export class AutoLayoutControlModel extends PropertySectionModel {
}
this.targetMorph.layout = layout.with(changes);
});
this.targetMorph.world()?.sceneGraph?.refresh();
}

toggleWrapping () {
Expand Down Expand Up @@ -165,7 +166,7 @@ export class AutoLayoutControlModel extends PropertySectionModel {
if (!layout || layout.name() !== 'Tiling') { this.targetMorph.layout = new TilingLayout(); }
});
this.update();

this.targetMorph.world()?.sceneGraph?.refresh();
signal(this.view, 'layout changed');
}

Expand All @@ -182,6 +183,7 @@ export class AutoLayoutControlModel extends PropertySectionModel {
this.targetMorph.layout = undefined;
layoutableSubmorphs.forEach(m => m.position = m.position);
});
this.targetMorph.world()?.sceneGraph?.refresh();
}
this.popup = false;

Expand Down

0 comments on commit eca0339

Please sign in to comment.