You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2015/01/07 13:30:33 UTC

[3/3] git commit: [flex-asjs] [refs/heads/develop] - Update point determination code.

Update point determination code.


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

Branch: refs/heads/develop
Commit: c831a9ccb74ed76fb149a3aaba415571fa8f23c2
Parents: e845c6e
Author: Peter Ent <pe...@apache.org>
Authored: Wed Jan 7 07:30:16 2015 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Jan 7 07:30:16 2015 -0500

----------------------------------------------------------------------
 .../FlexJSJX/src/org/apache/flex/charts/beads/DataTipBead.as     | 4 ++--
 .../FlexJSJX/src/org/apache/flex/html/accessories/ToolTipBead.as | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c831a9cc/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/beads/DataTipBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/beads/DataTipBead.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/beads/DataTipBead.as
index 8725f2d..04f11ee 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/beads/DataTipBead.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/charts/beads/DataTipBead.as
@@ -126,11 +126,11 @@ package org.apache.flex.charts.beads
 		 * Override's the ToolTipBead's function to position the data tip just above
 		 * the itemRenderer.
 		 */
-		override protected function determinePosition(base:Point, local:Object):Point
+		override protected function determinePosition(event:MouseEvent, base:Object):Point
 		{
 			// always want above the renderer
 			var pt:Point = new Point(0, -20);
-			pt = PointUtils.localToGlobal(pt, local);
+			pt = PointUtils.localToGlobal(pt, base);
 			return pt;
 		}
 		

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c831a9cc/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/ToolTipBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/ToolTipBead.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/ToolTipBead.as
index 64afbef..f005915 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/ToolTipBead.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/ToolTipBead.as
@@ -109,7 +109,7 @@ package org.apache.flex.html.accessories
 			
             tt = new ToolTip();
             tt.text = toolTip;
-            var pt:Point = determinePosition(new Point(MouseUtils.localX(event), MouseUtils.localY(event)), event.target);
+            var pt:Point = determinePosition(event, event.target);
             tt.x = pt.x;
             tt.y = pt.y;
             host.addElement(tt);
@@ -119,7 +119,7 @@ package org.apache.flex.html.accessories
 		 * @private
 		 * Determines the position of the toolTip.
 		 */
-		protected function determinePosition(base:Point, local:Object):Point
+		protected function determinePosition(event:MouseEvent, base:Object):Point
 		{
 			var comp:IUIBase = _strand as IUIBase;
 			var pt:Point = new Point(comp.width, comp.height);