0 Replies Latest reply on Aug 5, 2009 2:17 PM by Jason Szeto

    [svn:fx-trunk] 9118: DropDropList bug fix

    Jason Szeto Level 3

      Revision: 9118

      Author:   jszeto@adobe.com

      Date:     2009-08-05 14:16:58 -0700 (Wed, 05 Aug 2009)

       

      Log Message:

      ***********

      DropDropList bug fix

       

      http://bugs.adobe.com/jira/browse/SDK-22535 - Rolling over a programmatically opened Spark DropDownList causes the DropDownList to close itself

       

      In ButtonBase, when the keepDown property was set to true while the mouse was not over the button, a subsequent rollover caused the ButtonDown event to be dispatched. The fix is to change keepDown from a property to a function and introduce a second parameter that stops the Button from dispatching the ButtonDown in this situation.

       

      DropDownController needs to call keepDown in two different ways depending upon whether the component was opened via mouse interaction on the button or via keyboard interaction / programmatically. I didn?\226?\128?\153t want to add a new parameter to the public API, so I refactored the function and change the way it is called internally.

       

      QE notes: Add test case

      Doc notes: None

      Bugs: SDK-22535

      Reviewer: Ryan

      Tests run: DropDownList, Button

      Is noteworthy for integration: No

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-22535

          http://bugs.adobe.com/jira/browse/SDK-22535

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.a s

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownCont roller.as