Remove useless checking

This commit is contained in:
pandamicro
2017-03-16 16:40:18 +08:00
parent 0eb172f377
commit d54555fee0
+1 -1
View File
@@ -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;