mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Remove useless checking
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user