You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/05/30 19:48:24 UTC

[49/50] git commit: [flex-asjs] [refs/heads/tlf] - absolute position each textline

absolute position each textline


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

Branch: refs/heads/tlf
Commit: 55ce91f0e45c0c243ac5f2904a6cbae74694dddf
Parents: 1fb7765
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 30 12:43:53 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 30 12:43:53 2017 -0700

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/text/html/TextLine.as | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/55ce91f0/frameworks/projects/Text/src/main/flex/org/apache/flex/text/html/TextLine.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Text/src/main/flex/org/apache/flex/text/html/TextLine.as b/frameworks/projects/Text/src/main/flex/org/apache/flex/text/html/TextLine.as
index 9fe6de3..40135d6 100644
--- a/frameworks/projects/Text/src/main/flex/org/apache/flex/text/html/TextLine.as
+++ b/frameworks/projects/Text/src/main/flex/org/apache/flex/text/html/TextLine.as
@@ -25,6 +25,10 @@ package org.apache.flex.text.html
 		import flash.text.TextFormat;
 		import flash.text.TextFieldAutoSize;
 	}
+	COMPILE::JS
+	{
+		import org.apache.flex.core.WrappedHTMLElement;
+	}
 	
 	import org.apache.flex.text.engine.ElementFormat;
 	import org.apache.flex.text.engine.ITextLine;
@@ -63,6 +67,18 @@ package org.apache.flex.text.html
 			_textBlock = textBlock;
 			_beginIndex = beginIndex;
 		}
+		
+		/**
+		 * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+		 */
+		COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+		{
+			var e:WrappedHTMLElement = super.createElement();
+			e.style.position = "absolute";
+			return e;
+		}
+			
 		public function get ascent():Number
 		{
 			COMPILE::SWF