You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setResizeCallback method not fire after rotation in android device. When run in browser the working fine.
buth create apk with cross platform then event not call.
Bellow code , I have used.
cc.view.resizeWithBrowserSize(true);
cc.view.setResizeCallback(function() {
// Do things according to your need,
// e.g. change a resolution policy when user's mobile orientation changed.
var frameSize = cc.view.getFrameSize();
if(frameSize.width < frameSize.height)
{
cc. view. setDesignResolutionSize(frameSize.width,frameSize.height, cc.ResolutionPolicy.EXACT_FIT);
}
else
{
cc.view.setDesignResolutionSize(frameSize.height,frameSize.width, cc.ResolutionPolicy.EXACT_FIT);
}
});
Please Help me how to solve issue .
Thanks,
Lokesh Patel
The text was updated successfully, but these errors were encountered:
LokeshPatel
changed the title
setResizeCallback Working build android app
setResizeCallback not working build android app
Jul 22, 2016
Hi,
setResizeCallback method not fire after rotation in android device. When run in browser the working fine.
buth create apk with cross platform then event not call.
Bellow code , I have used.
Please Help me how to solve issue .
Thanks,
Lokesh Patel
The text was updated successfully, but these errors were encountered: