修正在手机状态下得到的视图大小错误的问题.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user