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

BottomDrawerPopUpContentManager ignored panel.headerFactory #1799

Closed denisgl7 closed 4 years ago

denisgl7 commented 4 years ago

Hi Josh! I saw that you are updating 4.1. If you have some time, please see the following inaccuracy

var manager:BottomDrawerPopUpContentManager = new BottomDrawerPopUpContentManager();
manager.panelFactory = function ():Panel
{
     var panel:Panel = new Panel();
     panel.headerFactory = function ():IFeathersControl
     {
       var header:Header = new Header();
       header.backgroundSkin = new Quad(10, 10, 0x0);
       return header;
     };
}

in fact, the BottomDrawerPopUpContentManager will use his headerFactory at line 403

this.panel.headerFactory = headerFactory;

That is, I don’t set the panel property