0 Replies Latest reply on Jul 29, 2009 12:46 PM by Jason Szeto

    [svn:fx-3.x] 8906: http://bugs.adobe.com/jira/browse/ SDK-20758 - DropdownEvent. CLOSE event is not always dispatched when the dropdown is removed ( destroyed before closed)

    Jason Szeto Level 3

      Revision: 8906

      Author:   jszeto@adobe.com

      Date:     2009-07-29 12:45:46 -0700 (Wed, 29 Jul 2009)


      Log Message:


      http://bugs.adobe.com/jira/browse/SDK-20758 - DropdownEvent.CLOSE event is not always dispatched when the dropdown is removed (destroyed before closed)


      ComboBox was not dispatching a CLOSE event when the dropdown was closed due to a programmatic change while it was open. For example, if the dataProvider or a style was changed while the dropdown was open, we want to immediately close the dropdown.


      I modified destroyDropdown to always end the tween if one is currently playing and then close the dropdown with no animation. I added a new parameter to displayDropdown to open/close the dropdown without any animation. Where we were calling destroyDropdown(), I removed  the setting of _showingDropdown because that variable is managed in displayDropdown.


      Thanks to Brian Curtis for filing the bug and for the original patch submission.


      QE notes: Add tests for these use cases

      Doc notes: None

      Bugs: SDK-20758

      Reviewer: Alex

      Tests run: ComboBox

      Is noteworthy for integration: No


      Ticket Links:





      Modified Paths: