0 Replies Latest reply on Jan 27, 2017 4:30 AM by ibrahimb56446803

    Dynamically Changing dropdown size



      I use flex sdk 4.5.1 and use spark component DropDownList.


      I want to dynamically change the dropDown width(not the button of the dropdownList, just the dropdown itself, which is opened when the button is clicked)

      to a fixed size (let's say - 140).


      I managed to do so by:


         labelFunction="{ getOpLabel }"


      However, the dropdown is resized after few milliseconds so when I click on the dropDownList, I can see the resize process for a half of a second.

      I prefer it to be more immediate.

      Is it possible to do so? How?


      In general, I prefer that the dropdown size will be adjusted by the widest item in the list, but this doesn't happen and it seems too complicated to fix it.