PhoneGAP initial resize problem

Get help using Construct 2

Post » Tue Feb 19, 2013 9:42 am

Hi,

I have a problem with c2 canvas resizing at the beginnig of Phonegap app. I am trying to subtract 50px from height to fit adsense banner at the bottom, but it doesn't work (probably my lack of knowledge in jquery). However, onResize event works fine and after orientation change game rescales and adsense banner appears.

Here is my changed code from index.html in resizing section:

jQuery(window).resize(function() {cr_sizeCanvas(jQuery(window).width(), jQuery(window).height()-50);});

Have you got any idea how to make it work from the beginning of the game?

B
7
S
1
G
1
Posts: 15
Reputation: 1,481

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Ethan, Marxally, Naightwolf, pierre244 and 16 guests