flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/2] git commit: [flex-asjs] [refs/heads/develop] - Containers require localtoglobal for popups
Date Fri, 10 May 2013 04:34:46 GMT
Containers require localtoglobal for popups


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/74e7819d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/74e7819d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/74e7819d

Branch: refs/heads/develop
Commit: 74e7819d2484a1aa00312bb5a65d60079074654f
Parents: a9d538c
Author: Alex Harui <aharui@apache.org>
Authored: Thu May 9 21:32:41 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu May 9 21:32:41 2013 -0700

----------------------------------------------------------------------
 .../beads/controllers/DropDownListController.as    |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/74e7819d/frameworks/as/src/org/apache/flex/html/staticControls/beads/controllers/DropDownListController.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/controllers/DropDownListController.as
b/frameworks/as/src/org/apache/flex/html/staticControls/beads/controllers/DropDownListController.as
index be2ef7a..e58e7a7 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/controllers/DropDownListController.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/controllers/DropDownListController.as
@@ -19,13 +19,14 @@
 package org.apache.flex.html.staticControls.beads.controllers
 {
 	import flash.display.DisplayObject;
+	import flash.geom.Point;
 	
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.ISelectionModel;
 	import org.apache.flex.core.IStrand;
-	import org.apache.flex.html.staticControls.beads.IDropDownListBead;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.IEventDispatcher;
+	import org.apache.flex.html.staticControls.beads.IDropDownListBead;
 
 	public class DropDownListController implements IBead
 	{
@@ -51,8 +52,10 @@ package org.apache.flex.html.staticControls.beads.controllers
             popUpModel.selectedIndex = selectionModel.selectedIndex;
 			DisplayObject(viewBead.popUp).width = DisplayObject(_strand).width;
 			DisplayObject(viewBead.popUp).height = 200;
-			DisplayObject(viewBead.popUp).x = DisplayObject(_strand).x;
-			DisplayObject(viewBead.popUp).y = DisplayObject(_strand).y;
+            var pt:Point = new Point(DisplayObject(_strand).x, DisplayObject(_strand).y);
+            pt = DisplayObject(_strand).parent.localToGlobal(pt);
+			DisplayObject(viewBead.popUp).x = pt.x;
+			DisplayObject(viewBead.popUp).y = pt.y;
             IEventDispatcher(viewBead.popUp).addEventListener("change", changeHandler);
         }
         


Mime
View raw message