0 Replies Latest reply on Aug 14, 2009 5:02 PM by rfrishbe

    [svn:fx-trunk] 9328: Fixing SDK-22462: Event dispatched is not as expected in Tree

    rfrishbe Level 3

      Revision: 9328

      Author:   rfrishbe@adobe.com

      Date:     2009-08-14 17:02:35 -0700 (Fri, 14 Aug 2009)

       

      Log Message:

      ***********

      Fixing SDK-22462: Event dispatched is not as expected in Tree

       

      For this, the issue is really that TreeItemRenderers assume that no click event can occur on the disclosureIcon.  This is because the discolsureIcon is added and removed each time it goes through invalidation in commitProperties(), so a new discolsureIcon gets created and replaces the old one after they mouseDown (meaning no click event actually occurs).  Automation replays some mouse events on one disclosureIcon only (which is an automation bug because that?\226?\128?\153s not how it actually works in the real world) and when a ?\226?\128?\156click?\226?\128?\157 occurs, that causes an itemClick on the Tree, when it shouldn?\226?\128?\153t.  For Flex 3, this wasn?\226?\128?\153t a problem because the IR was getting invalidated through a different codepath because openDuration did not default to 0.  If you set it to 0, you?\226?\128?\153d see the same problem in Flex 3.  Anyways, the fix is just to block all click events that occur on the disclosureIcon.

       

      QE notes: -

      Doc notes: -

      Bugs: SDK-22462

      Reviewer: Alex

      Tests run: checkintests, mustella Tree

      Is noteworthy for integration: No

       

      Ticket Links:

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

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

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

       

      Modified Paths:

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

          flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer .as