修正在手机状态下得到的视图大小错误的问题.

This commit is contained in:
ChenX
2018-06-06 16:00:53 +08:00
parent 1f0a91b75a
commit 256a7ea8a6
4 changed files with 6 additions and 6 deletions

View File

@@ -86,8 +86,8 @@ export class Viewer
OnSize = (width?, height?) =>
{
this._Width = width ? width : this.m_DomEl.scrollWidth;
this._Height = height ? height : this.m_DomEl.scrollHeight;
this._Width = width ? width : this.m_DomEl.clientWidth;
this._Height = height ? height : this.m_DomEl.clientHeight;
//校验.成为2的倍数 避免外轮廓错误.
if (this._Width % 2 == 1)