Hi
Am using cocos2d-js 3.0 final version framework. It works fine in browser, But When i open link in any IPAD canvas is appearing left bottom. Same code was works fine in cocos2d-js beta version.
I want to canvas should appear center.
Is there any changes in new framework.
Regards
Gurudath
There isn’t any such changes. I use android tablet. There it woks as it should work!!
I don’t know about ipad but I guess it shouldn’t have been any change… May lets see what other guys have to say
I have tested in andriod mobile. It works fine. Am facing problem with Ipad
Regards
Am facing problem with all device for specific ipad mini ios version 7
Render mode: 0
I have attached index.html , screenshot main.js file.
ThanksCanvasIssue.zip (53.6 KB)
I saw in your code :
var pDirector = cc.director;
var pEGLView = cc.view;
pDirector.setOpenGLView(pEGLView);
var frameSize = pEGLView.getFrameSize();
var genericDeviceWidth = (frameSize.width > frameSize.height) ? frameSize.width : frameSize.height;
var genericDeviceHeight = (frameSize.width > frameSize.height) ? frameSize.height : frameSize.width;
You shouldn’t call setOpenGLView
of director, it’s automatically done, I’m not sure if that’s the issue, but you can try something like this:
var pDirector = cc.director;
var pEGLView = cc.view;
var frameSize = pEGLView.getFrameSize();
var genericDeviceWidth = (frameSize.width > frameSize.height) ? frameSize.width : frameSize.height;
var genericDeviceHeight = (frameSize.width > frameSize.height) ? frameSize.height : frameSize.width;
I tried out by removing setopenGlview. But for me still issue is exist.
Do you have a online test link?
Currently am ruunning on local. I will put it to server and let u know the link
Ok, that will be easier to dig out the real issue
Here is online link
54.235.87.120/FacebookTest/index.html
Can anyone found same issue?
Any solution?
Thanks
Sorry, I forgot your post, I think I can get access to an iPad Monday, and I will give it a try.
Hi,
Did you tried with device. I am not getting where am making mistake. Is there any setting to make full screen?
Thank you
It is working correctly on the iPad mini I found.
My screenShot “54.235.87.120/FacebookTest/index.html” on iPad2 (iOs 7.0.4)
On iPad1 (iOs 5.1.1) - same problem
On iPad Mini (retina) iOs 7.0.4 - works correctly
Hi,
This issue exist with a device of version 7 and above.
Regards
I’m using iPad mini retina iOS8, I will try to find a iPad 1 or 2, thanks for the informations
Any update?
Am finding same issue in iphone also.
Thanks