fixed webview and video-player display err for fireball/issues/7410 (#2756)

This commit is contained in:
Knox
2018-05-29 17:20:07 +08:00
committed by pandamicro
parent 225ff11b75
commit 0ea8ec2932
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -416,8 +416,8 @@ let VideoPlayerImpl = cc.Class({
h = this._h * scaleY;
}
let appx = (w * a) * node._anchorPoint.x;
let appy = (h * d) * node._anchorPoint.y;
let appx = (w * _mat4_temp.m00) * node._anchorPoint.x;
let appy = (h * _mat4_temp.m05) * node._anchorPoint.y;
let tx = _mat4_temp.m12 * scaleX - appx + offsetX, ty = _mat4_temp.m13 * scaleY - appy + offsetY;
let matrix = "matrix(" + a + "," + -b + "," + -c + "," + d + "," + tx + "," + -ty + ")";
+2 -2
View File
@@ -355,8 +355,8 @@ let WebViewImpl = cc.Class({
this._updateSize(this._w, this._h);
let w = this._div.clientWidth * scaleX;
let h = this._div.clientHeight * scaleY;
let appx = (w * a) * node._anchorPoint.x;
let appy = (h * d) * node._anchorPoint.y;
let appx = (w * _mat4_temp.m00) * node._anchorPoint.x;
let appy = (h * _mat4_temp.m05) * node._anchorPoint.y;
let tx = _mat4_temp.m12 * scaleX - appx + offsetX, ty = _mat4_temp.m13 * scaleY - appy + offsetY;
let matrix = "matrix(" + a + "," + -b + "," + -c + "," + d + "," + tx + "," + -ty + ")";