flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamsel...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - Refix-FLEX-34088 CalloutWithDropDown FIX 34124 ( RTE when clicking outside of callout)
Date Sat, 01 Mar 2014 23:49:12 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop 0bc65538a -> 5468de3f7


Refix-FLEX-34088 CalloutWithDropDown
FIX 34124 ( RTE when clicking outside of callout)


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/5468de3f
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/5468de3f
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/5468de3f

Branch: refs/heads/develop
Commit: 5468de3f7e1b71d5e4ff14c30651f111050bd998
Parents: 0bc6553
Author: mamsellem <maurice.amsellem@systar.com>
Authored: Sun Mar 2 00:47:51 2014 +0100
Committer: mamsellem <maurice.amsellem@systar.com>
Committed: Sun Mar 2 00:47:51 2014 +0100

----------------------------------------------------------------------
 .../src/spark/components/supportClasses/DropDownController.as | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/5468de3f/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
b/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
index c076211..9193d36 100644
--- a/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
+++ b/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
@@ -608,8 +608,11 @@ public class DropDownController extends EventDispatcher
                 return;
 			
 			// don't close if something just been selected in a DropDownList
-			if (target is IUIComponent && (target as IUIComponent).document.hostComponent
is DropDownList)
-				return;	
+			if (target is IUIComponent){
+                   var doc:  Object = (target as IUIComponent).document;
+                   if ( ("hostComponent" in doc ) && doc.hostComponent is DropDownList
)
+			                  	return;
+            }
 
             if (hitAreaAdditions != null)
             {


Mime
View raw message