Software Archive
Read-only legacy content
17060 ディスカッション

iOS iframe always go top

Edo_F_
ビギナー
1,640件の閲覧回数

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 件の賞賛
4 返答(返信)
Amrita_C_Intel
従業員
1,640件の閲覧回数

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.

Edo_F_
ビギナー
1,640件の閲覧回数

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 ..

Gary_M_2
ビギナー
1,640件の閲覧回数

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

 

PaulF_IntelCorp
従業員
1,640件の閲覧回数

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.

返信