Software Archive
Read-only legacy content
17061 Discussions

iOS iframe always go top

Edo_F_
Beginner
331 Views

how can i fix this ? i build app framework with tab control and add iframe , ( because i dont know how to embed webview + tab control)

(eg) tab1 : iframe youtube , BUT , in iOS this scroll always error , like going to top or another , and in android works like a charm ..

 

*sorry if my english bad ..

0 Kudos
4 Replies
Amrita_C_Intel
Employee
331 Views

I recommend placing your iframe within a DIV element with overflow attributes set. For more information, visit http://davidwalsh.name/scroll-iframes-ios. This applies to iOS and Android.

0 Kudos
Edo_F_
Beginner
331 Views

i've tried that all from google include from that website , but no one can fix i guess, sometime i can scroll without problem , but if i try to press some button at bottom, i go to top page again ..

0 Kudos
Gary_M_2
Beginner
331 Views

Hi,

Did you find a fix for this? I am getting the same bug on my iframe on ios.  It actually happens when you click a button in the iframe. Links work fine but buttons do not. 

https://vimeo.com/182864960

 

0 Kudos
PaulF_IntelCorp
Employee
331 Views

Gary -- I recommend you search StackOverflow for something like "iframe ios cordova problems" to find solutions.

The XDK has no bearing on how your HTML5 code renders (including iframes). The rendering behavior of your app is 100% dependent on the device and the webview in that device, the XDK has no control over this.

0 Kudos
Reply