Raised when the element receives a new position and size by the layout engine.

Event handlers are called with an instance of PlacedArgs.

All coordinates are in the parent node's local space, in points.

Note: Due to the asynchronous nature of JavaScript and the way it communicates with UX, there is no guarantee of exactly when an event handler will fire. For this reason, we strongly discourage using Placed or JavaScript in general for controlling layout, as doing so can lead to flickering and other artifacts.

Example

<JavaScript>
    function panelPlaced(args) {
        console.dir("New position:", [args.x, args.y]);
        console.dir("New size:", [args.width, args.height]);
    }

    module.exports = { panelPlaced: panelPlaced };
</JavaScript>

<Panel Placed="{panelPlaced}"/>

Location

Namespace
Fuse.Elements
Package
Fuse.Elements 2.9.1

Returns

PlacedHandler (object, PlacedArgs)