Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webview iframe overflow

I'm currently building a web app in android. My app runs in a webview, and loads third-party contents through iframes. The iframe size is fixed and supposed not to be changed by the content loaded.

In desktop Chrome browser, it works fine and the overflow part of loaded content can be scrolled via scrollbars. However, in android webview, the iframe tends to resize itself based on the contents loaded, which leads to a mess of the page layout.

Has anyone else encountered the same problem?

like image 901
Longbiao CHEN Avatar asked Sep 20 '10 01:09

Longbiao CHEN


1 Answers

I found out a way to avoid this nasty problem. I've disabled the scrolling bar of iframe, and use iscroll in the application instead. This scrolling bar is nearly the same as the original one, though slower on my HTC Magic phone.

like image 165
Longbiao CHEN Avatar answered Nov 15 '22 05:11

Longbiao CHEN