iFrame on iOS - scrolling and fixed position

Get help using Construct 2

Post » Sat Dec 12, 2015 1:04 pm

I use iFrame (@Pode's plugin) to display leaderboards inside my game. It works very fine on Android and PC but has some very weird issues on iOS.

At first, on iPhone, it resizes to the size of the content, so it goes all the way down of the layout. It's good that I can, at least, scroll to see everything. But I have some decorative snowflakes over the leaderboards (made on server-side). I want to use position: fixed; for them to achieve what I want - and it works perfectly on Android and PC - but not on iOS. I want to be able to have some snowflakes no matter how much I scroll. But on iOS, they scroll with the content. That means I don't see them when I scroll to the bottom.

Second, on iPad, it doesn't resize. Instead, it stays the same size as set. But that means I cannot scroll down the content and I cannot see the whole content. I would like to be able to scroll on iPad, too.

Does anyone know any solution for this?
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Tue Feb 16, 2016 1:40 pm

Ho you did the iframe 'works' under android???
I export with cordova then i use IntelXDK
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Tue Feb 16, 2016 4:28 pm

Hi,
i have exactly ... the same problem on ios
related post viewtopic.php?f=147&t=167819
i was thinking about set the size of the iframe to the avalaible screen and set x to centrate ... but fail
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Tue Feb 16, 2016 9:30 pm

imothep85 wrote:Ho you did the iframe 'works' under android???
I export with cordova then i use IntelXDK

I don't know, it just works. One thing I have, that's probably not so natural, is that instead of having set URL at the beginning, I set it on start of layout. Unless I do that, the On Loaded condition doesn't trigger.
B
32
S
7
G
4
Posts: 398
Reputation: 4,591


Return to How do I....?

Who is online

Users browsing this forum: kellehk and 29 guests