I have created a MenuBar with some Menu Items in the dropdown. I have kept this menu at the right most edge in the screen.
The problem is that, when I click on the MenuBar, the dropdown is aligned to the left of MenuBar, and as a result the dropdown crosses the screen boundry and some of the MenuItems are not visible completely. The screenshot is attached below:
Is there a way to change this alignment so that the Droown align with the right edge of MenuBar.
It is very urgent. Any help will be appreciated.
Thanks in Advance.
check if menu bar has padding options.
if not,use a spacer control to maintain space at the right end
see if you can specify component alignments in menubar
mark this answered if helpful
Thank you for reply. But none of your suggestion will work. I am still waiting for a more concrete and correct answer.
private function modifyCB(targ:ComboBox):void
var intDropDownXpos:int = targ.x - 68; //this will be according to your combobox x position
if(targ.dropdown.x != intDropDownXpos )
targ.dropdown.x = intDropDownXpos; //u can change the position here..
THIS SHOULD DEFINATELY WORK..I AM FEELING SLEEPY..
MARK THIS ANSWERED IF HELPFUL