Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Roster Role Menu Bug?

Avatar

Former Community Member

I was working with the roster class and role menu and I noticed that the sub menu for the roles list was not positioning correctly.  After digging around I found this line in the CustomMenu.as class. 

menu.show(pt.x + width - 7, Math.min(pt.y - 7, this.stage.height - menu.height - getStyle("bottomPadding")));

After debugging I realized that NaN was being sent into the menu.show function for the y position.  This is b/c there is no bottomPadding, in fact I didnt know the property of bottomPadding existed.  I believe the fix should be getStyle("paddingBottom"))); 

To work around this without having to change any code in the afcs source I simple added a style for the menu class

Menu

{

borderColors: #000000,#000000;

bottomPadding: 2;

}

That seems to do the trick.

-chris

1 Reply

Avatar

Former Community Member

this only seems to happen if you specify a menudataprovider function.