mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
Fix canvas resize (#4206)
This commit is contained in:
@@ -1077,7 +1077,7 @@ class ContainerStrategy {
|
||||
var locCanvas = cc.game.canvas, locContainer = cc.game.container;
|
||||
|
||||
if (cc.sys.platform !== cc.sys.WECHAT_GAME) {
|
||||
if (cc.sys.os !== cc.sys.OS_IOS) {
|
||||
if (cc.sys.os === cc.sys.OS_ANDROID) {
|
||||
document.body.style.width = (view._isRotated ? h : w) + 'px';
|
||||
document.body.style.height = (view._isRotated ? w : h) + 'px';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user