C2 Viewport - stretch

Discussion and feedback on Construct 2

Post » Sun Oct 28, 2012 7:37 am

How is the viewport calculated? Or the "Stretch mode" setup?

The reason I ask is that, when my game is in an iframe on clay.io it seems to fall off the bottom of the screen on the ipad in both chrome as safari.

On the desktop browser it is fine.

B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Sun Oct 28, 2012 1:20 pm

It simply uses whatever the browser tells it is the size of the viewport. Are you sure there's no HTML in the iframe causing it to scroll? For example you may need to remove all page margins and padding.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Construct 2 General

Who is online

Users browsing this forum: edisone, iyenal222, pablo7 and 10 guests