mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fixed webview and video-player display err for fireball/issues/7410 (#2756)
This commit is contained in:
@@ -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 + ")";
|
||||
|
||||
@@ -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 + ")";
|
||||
|
||||
Reference in New Issue
Block a user