in flash builder 4 how do i use the skinning option to make sure the popup dropdown list changes it’s width to fit the longest item in the list?
(the prompt area – the component when it is closed – should not change it’s width)
thanx
Saar
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
got it – (but i am sure there is an easier way)
make a custom DropDownListSkin and make it the skin of the DropDownList.
in the popupanchor definition set popUpWidthMatchesAnchorWidth to false.
cycle through the list to find the longest item and calculate desired width from it
and on the open event of the dropdownlist set the width of the skin’s dropDown property(which is a group) to the calculated width.