You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/08/02 21:52:31 UTC

git commit: [flex-asjs] [refs/heads/develop] - Strikethru needs this too.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop de15fe6b0 -> 66ac90c15


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/develop
Commit: 66ac90c159842604366ed396d9f6e4dffe4e65d8
Parents: de15fe6
Author: Harbs <ha...@in-tools.com>
Authored: Thu Aug 3 00:52:27 2017 +0300
Committer: Harbs <ha...@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)