set size of selection object.  For some reason it is born with 
explicitWidth/Height of 0 and does not expand when to drawRect into it.   
Later, when selObj is added to display list, it redraws itself based on its 
explicitWidth/Height


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

Branch: refs/heads/tlf
Commit: 036751064398c60ecfdcd8ac4bbfe0261bb4eaa9
Parents: 4c7cee2
Author: Alex Harui <[email protected]>
Authored: Sat May 6 21:34:23 2017 -0700
Committer: Alex Harui <[email protected]>
Committed: Mon May 8 11:59:01 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/textLayout/container/ContainerController.as    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/03675106/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/container/ContainerController.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/container/ContainerController.as
 
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/container/ContainerController.as
index 80e1332..bb223b7 100644
--- 
a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/container/ContainerController.as
+++ 
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/container/ContainerController.as
@@ -2846,6 +2846,8 @@ package org.apache.flex.textLayout.container
 //                     selObj.graphics.beginFill(selFormat.pointColor);
                        // pixel snap - works for unscaled text - scaled text 
will have to accept fuzzy cursors
                        selObj.drawRect(int(x),int(y),w,h);
+                       selObj.width = w;
+                       selObj.height = h;
 //                     selObj.graphics.drawRect(int(x),int(y),w,h);
 //                     selObj.graphics.endFill();
                        

Reply via email to