您好,在使用cc.EGLView.getInstance().setDesignResolutionSize(320, 480, cc.RESOLUTION_POLICY.SHOW_ALL)来设置分辨率的时候,发现在最新版安卓火狐浏览器上屏幕最大化时页面被拉伸,无法正常显示。
20140129_150924.jpg (1261.9 KB)
20140129_150924.jpg (46.5 KB)
您好,在使用cc.EGLView.getInstance().setDesignResolutionSize(320, 480, cc.RESOLUTION_POLICY.SHOW_ALL)来设置分辨率的时候,发现在最新版安卓火狐浏览器上屏幕最大化时页面被拉伸,无法正常显示。
20140129_150924.jpg (1261.9 KB)
20140129_150924.jpg (46.5 KB)
Hi,
We need more information about the plateform, which device are you using?
And can you give us a screen caption of your game in normal state?
Huabin
在PC上一切正常,这个问题只出现在安卓手机的火狐浏览器上
sony c6603
Android 4.1.2
firefox 26.0.1
竖屏
横屏
Hi,
I found the reason, on Android Firefox, once you set more than one parameter in viewport meta, it doesn’t work anymore.
I will do some extra check for firefox when setting viewport meta to fix it
Huabin
This issue has been fixed in https://github.com/cocos2d/cocos2d-html5/pull/1544
But note that in your index.html, you shouldn’t set the viewport meta yourself, otherwise the trick won’t work.