feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
914 stars 386 forks source link

Is that a way to position the 'Toast' on top? #1804

Closed yong2khoo88 closed 4 years ago

yong2khoo88 commented 4 years ago

As titled, i tried to position the Toast component, with 'x' or 'y' property. but there is no change. Did i miss out something?

Version Feathers v4.0.0

joshtynjala commented 4 years ago

Toast components are added to a special container in the PopUpManager, and this container has a layout that positions the Toasts. You can use Toast.containerFactory to customize this layout.

Toast.containerFactory = function():DisplayObjectContainer
{
    var container:LayoutGroup = new LayoutGroup();
    container.layout = new VerticalLayout();
    return container;
};