From d54555fee0d35751bcfb0d7d4e27a317b2cc72f6 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 16 Mar 2017 16:40:18 +0800 Subject: [PATCH] Remove useless checking --- cocos2d/core/platform/CCView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/platform/CCView.js b/cocos2d/core/platform/CCView.js index d18ab85f8d..755c884638 100644 --- a/cocos2d/core/platform/CCView.js +++ b/cocos2d/core/platform/CCView.js @@ -324,7 +324,7 @@ var View = cc._Class.extend({ var h = __BrowserGetter.availHeight(cc.game.frame); var isLandscape = w >= h; - if (CC_EDITOR || !this._orientationChanging || !cc.sys.isMobile || + if (CC_EDITOR || !cc.sys.isMobile || (isLandscape && this._orientation & cc.macro.ORIENTATION_LANDSCAPE) || (!isLandscape && this._orientation & cc.macro.ORIENTATION_PORTRAIT)) { locFrameSize.width = w;