Transferred from the Adobe Open Source Subversion Repository

Revision: 6474
Author:   jszeto@adobe.com
Date:     2009-05-01T20:45:45.128367Z

Log Message:
-----------
SDK-20892 - Using navigation keys don't work when the DropDownList is closed

The dataGroup skin part holds the layout value. The layout was null when the DropDownList was closed because the dataGroup only exists when the DropDownList is open. The fix is to override the layout getter and return VerticalLayout if the dataGroup doesn't exist.

SDK-20850 - DropDownList dispatches open event before dropDown is visible on screen

The skin update was changed from synchronous to asynchronous, so the open event was dispatched too early. We now wait for UPDATE_COMPLETE before sending the open or close events.

SDK-19874 - Setting selectedIndex on Spark DropDownList control doesnt auto-scroll dropdown

The skin update was changed from synchronous to asynchronous, so the dataGroup skin part didn't exist when we tried to auto-scroll. We now wait for UPDATE_COMPLETE before auto-scrolling.

SDK-20810 - DropDownList does not display color style correctly when set to white

The labelElement was getting colorized to the baseColor. The DropDownListSkin has been changed to subclass Skin instead of SparkSkin. There are no visuals in the DropDownListSkin that need any of the SparkSkin functionality.

SDK-20870 - Changing Spark DropDownList skin at runtime clears the DropDownList Button label

In partAdded, when the labelElement is added, we now update the labelElement with the selectedItem's text representation

QE Notes: Fix for SDK-20850 should resolve the image snapshot problem when writing DDL mustella tests.
Doc Notes: None
Bugs: SDK-20892, SDK-20850, SDK-19874, SDK-20810, SDK-20870
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1285932 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2690,7 +2690,7 @@
   		else
   		{
   			displayObject.transform.matrix3D = globalMat3D;
-    }
+    	}
         // Translate the bitmap so that the left-top bounds ends up at (0,0)
 		var m:Matrix = new Matrix();
 		m.translate(-topLevelRect.left, - topLevelRect.top);