Expand my Community achievements bar.

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.