Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when I use iframe in ion-content, the ion-content scroll is not working

<ion-view view-title="title">
  <ion-content scroll="true">
    <iframe src="{{link}}"></iframe>
  </ion-content>
</ion-view>

look at the code above.

as the title says,when I use a iframe in the ion-content the scroll does't work.

How to solve this problem.

like image 499
Aaron Avatar asked Jan 27 '15 15:01

Aaron


2 Answers

Use overflow-scroll to enable scrolling

<ion-view view-title="title">
    <ion-content overflow-scroll="true">
         <iframe src="{{link}}"></iframe>
    </ion-content>
</ion-view>
like image 79
iDeekshith Avatar answered Oct 19 '22 04:10

iDeekshith


It's a bug on ios. I have resolved this problem. Refer to the following

Iframe scrolling iOS 8

like image 36
Aaron Avatar answered Oct 19 '22 04:10

Aaron