flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yish...@apache.org
Subject git commit: [flex-asjs] [refs/heads/refactor-sprite] - Keep 0 0 as transform origin.
Date Tue, 06 Sep 2016 15:22:41 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/refactor-sprite fc27a226c -> 61d58b8b9


Keep 0 0 as transform origin.


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

Branch: refs/heads/refactor-sprite
Commit: 61d58b8b91c44b75ca1735b3ce2d5427b8be1ba6
Parents: fc27a22
Author: yishayw <yishayjobs@hotmail.com>
Authored: Tue Sep 6 18:22:20 2016 +0300
Committer: yishayw <yishayjobs@hotmail.com>
Committed: Tue Sep 6 18:22:20 2016 +0300

----------------------------------------------------------------------
 .../HTML5/src/main/flex/org/apache/flex/html5/TransformBead.as     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61d58b8b/frameworks/projects/HTML5/src/main/flex/org/apache/flex/html5/TransformBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/src/main/flex/org/apache/flex/html5/TransformBead.as
b/frameworks/projects/HTML5/src/main/flex/org/apache/flex/html5/TransformBead.as
index 8964fc4..410d622 100644
--- a/frameworks/projects/HTML5/src/main/flex/org/apache/flex/html5/TransformBead.as
+++ b/frameworks/projects/HTML5/src/main/flex/org/apache/flex/html5/TransformBead.as
@@ -37,6 +37,8 @@ package org.apache.flex.html5
 			var fjsm:Matrix = transformModel.matrix;
 			var matrixArray:Array = [fjsm.a , fjsm.b, fjsm.c, fjsm.d, fjsm.tx, fjsm.ty];
 			var transformStr:String = "matrix(" + matrixArray.join(",") + ")";
+			element.style.transformOrigin = "0 0";
+			element.style.WebkitTransformOrigin = "0 0";
 			element.style.transform = transformStr;
 		}
 		


Mime
View raw message