0 Replies Latest reply on Mar 27, 2009 3:30 PM by Jason Szeto

    [svn:fx-3.x] 5688: SDK-18837 PopUpMenuButton' s iconField property is not exposed

    Jason Szeto Level 3
      Revision: 5688
      Author: jszeto@adobe.com
      Date: 2009-03-27 16:30:29 -0700 (Fri, 27 Mar 2009)

      Log Message:
      -----------
      SDK-18837 PopUpMenuButton's iconField property is not exposed

      Added iconField and iconFunction properties to PopUpMenuButton. Also, fixed bug where the anchor wasn't instantiating the icon of the selectedItem when it is first displayed. The problem was that we were creating the Menu popUp in the dataProvider setter. At that time, the PUMB hasn't been attached to the stage. This causes the call in getPopUp to not fully add the menu popUp to the PopUpManager via addPopUp. When the PUMB attempts to access the icon by calling itemToIcon, it fails because it doesn't have a reference to a SystemManager.

      The fix is to move the creation of the popUp menu to commitProperties. At that point, the PUMB will be attached to the displayList and the call to PopUpManager.addPopUp will fully complete.


      QE Notes: Add tests for iconField and iconFunction properties
      Doc Notes: Add documentation for iconField and iconFunction properties
      Bugs: SDK-18837
      Reviewer: Hans

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-18837
      http://bugs.adobe.com/jira/browse/SDK-18837

      Modified Paths:
      --------------
      flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/PopUpMenuButton.as