Repository: flex-asjs
Updated Branches:
  refs/heads/tlf ff4dd1e8a -> 38fcd2dfb


Fixed coordinate space issue


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

Branch: refs/heads/tlf
Commit: 38fcd2dfb177baab09cb3c1bfe9800ae81891696
Parents: ff4dd1e
Author: Harbs <ha...@in-tools.com>
Authored: Mon Jul 3 15:35:57 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Mon Jul 3 15:35:57 2017 +0300

----------------------------------------------------------------------
 .../flex/org/apache/flex/textLayout/edit/SelectionManager.as    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/38fcd2df/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/edit/SelectionManager.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/edit/SelectionManager.as
 
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/edit/SelectionManager.as
index cbc693a..adb09ab 100644
--- 
a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/edit/SelectionManager.as
+++ 
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/edit/SelectionManager.as
@@ -1502,8 +1502,9 @@ package org.apache.flex.textLayout.edit
                                // Can't use localToGlobal/globalToLocal 
because textLine may not be on the display list due to virtualization
                                // we may need to bring this back if textline's 
can be rotated or placed by any mechanism other than a translation
                                // but then we'll need to provisionally place a 
virtualized ITextLine in its parent container
-                               localX -= textLine.x;
-                               localY -= textLine.y;
+                               // Harbs 7/3/17 -- since we're dealing with 
local coordinates, I think this is not longer correct.
+                               // localX -= textLine.x;
+                               // localY -= textLine.y;
                                /* var localPoint:Point = 
DisplayObject(controller.container).localToGlobal(new Point(localX,localY));
                                localPoint = textLine.globalToLocal(localPoint);
                                localX = localPoint.x;

Reply via email to