We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6f3f5 commit e4f7458Copy full SHA for e4f7458
newIDE/app/src/ObjectsRendering/Renderers/RenderedCustomObjectInstance.js
@@ -665,6 +665,14 @@ export default class RenderedCustomObjectInstance extends RenderedInstance {
665
childInstance.setCustomHeight(renderedInstance.getDefaultHeight());
666
}
667
renderedInstance.update();
668
+
669
+ if (childLayout.verticalLayout.anchorOrigin == null) {
670
+ // This ensure objects are centered if their dimensions changed from the
671
+ // custom ones (preferred ones).
672
+ // For instance, text object dimensions change according to how the text is wrapped.
673
+ childInstance.y = (height - renderedInstance._pixiObject.height) / 2;
674
+ renderedInstance.update();
675
+ }
676
677
678
this._pixiObject.pivot.x = centerX;
0 commit comments