Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Iframe on iOS bugged when interacting with its content

$
0
0

@zetessofties wrote:

Hey there.
I want to show some external website in one of my tabs fullscreened. This works perfectly fine so far, all works fine in the served browser and android devices as well.
On iOS however, whether i'm using UI or the new WKWebView, interactions with the page seem to be problematic.

I have some divs that are toggled in and out (using bootstraps toggle-data), and weirdly enough, sometimes it works perfectly fine, other times the page:
sometimes scrolls instantly to the top
sometimes also changes the iframes position, so i'm no longer able to scroll down the iframe, but move the whole thing up and down. i need to switch tabs back and forth to be able to scroll again.
Maybe it has something to do with the iframe changing it's height?
All the js debugger tells me is that self.onScroll = function() is being called when it scrolls up.

Another weird thing: if i embed the page with object or embed, this doesn't seem to be an issue. When embedding it without an iframe however (using object instead), i can't scroll it's content, because it's height has no overflow (like the iframe does).
The website itself works fine in the safari without ionic around it.

Any ideas what I can do differently here? Any workarounds you could think of?

Thanks!

Oh, and here's how I embed the iframe:

<ion-content padding="false" overflow-scroll="true" scroll="true" class="iframe-wrapper">
<iframe data-tap-disabled="true" src="http://192.168.1.1:1337/agenda"></iframe>
<!-- <object data-tap-disabled="true" data="http://192.168.1.1:1337/agenda"></embed> -->
</ion-content>

Quick Update:
I changed the iframes position to absolute, so I can have a good look at it's height.
It turns out, the iframe changes it's height from initially ~2500px and keeps it as long as the page is working - however, when I encounter the bug, it's height is set to 599px, the viewport height. No wonder I am no longer able to scroll! Is this a browser bug or something within ionic?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>