We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a66c175 commit f8aeb7fCopy full SHA for f8aeb7f
cocos2d/core/platform/CCEGLView.js
@@ -985,7 +985,7 @@ cc.ContainerStrategy = cc.Class.extend(/** @lends cc.ContainerStrategy# */{
985
986
_setupContainer: function (view, w, h) {
987
var locCanvas = cc.game.canvas, locContainer = cc.game.container;
988
- if (cc.sys.os === cc.sys.OS_ANDROID) {
+ if (cc.sys.isMobile) {
989
document.body.style.width = (view._isRotated ? h : w) + 'px';
990
document.body.style.height = (view._isRotated ? w : h) + 'px';
991
}
0 commit comments