flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [13/42] git commit: [flex-asjs] [refs/heads/feature/amf] - Strikethru needs this too.
Date Sun, 13 Aug 2017 22:04:06 GMT
Strikethru needs this too.


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

Branch: refs/heads/feature/amf
Commit: 66ac90c159842604366ed396d9f6e4dffe4e65d8
Parents: de15fe6
Author: Harbs <harbs@in-tools.com>
Authored: Thu Aug 3 00:52:27 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Thu Aug 3 00:52:27 2017 +0300

----------------------------------------------------------------------
 .../org/apache/flex/textLayout/compose/utils/AdornmentUtils.as   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66ac90c1/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/utils/AdornmentUtils.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/utils/AdornmentUtils.as
b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/utils/AdornmentUtils.as
index 9fa970e..664a82f 100644
--- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/utils/AdornmentUtils.as
+++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/utils/AdornmentUtils.as
@@ -222,7 +222,9 @@ package org.apache.flex.textLayout.compose.utils
 						
 				var stOffset:Number = calculateStrikeThrough(element,tLine, blockProgression, metrics);
 				var ulOffset:Number = calculateUnderlineOffset(element, stOffset, blockProgression, metrics,
tLine);
-				ulOffset += tLine.getAdornmentOffsetBase();
+				var offset:Number = tLine.getAdornmentOffsetBase();
+				ulOffset += offset;
+				stOffset += offset;
 			}
 						
 			if (blockProgression != BlockProgression.RL)


Mime
View raw message