Skip to content

Commit f8aeb7f

Browse files
author
pandamicro
committed
Try to fix adaptation issue on ios 9.2/9.3
1 parent a66c175 commit f8aeb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/core/platform/CCEGLView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ cc.ContainerStrategy = cc.Class.extend(/** @lends cc.ContainerStrategy# */{
985985

986986
_setupContainer: function (view, w, h) {
987987
var locCanvas = cc.game.canvas, locContainer = cc.game.container;
988-
if (cc.sys.os === cc.sys.OS_ANDROID) {
988+
if (cc.sys.isMobile) {
989989
document.body.style.width = (view._isRotated ? h : w) + 'px';
990990
document.body.style.height = (view._isRotated ? w : h) + 'px';
991991
}

0 commit comments

Comments
 (0)