Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on mobile browsers #22

Open
indigator opened this issue Nov 15, 2013 · 7 comments
Open

Doesn't work on mobile browsers #22

indigator opened this issue Nov 15, 2013 · 7 comments

Comments

@indigator
Copy link

I tried on iPhone 4, iPhone 5 [iOS > 7]. Is there a fix for mobile browsers?

@inadarei
Copy link
Contributor

Can you please provide more details and a test-case? What doesn't work?

@indigator
Copy link
Author

iFrame responsiveness did not not work when I tested on mobile browsers. For mobile browsers height of iFrame remained 0px. So the content of iframe is hidden on mobile browsers.

Following is the CSS style of iframe

element.style {
width: 100%;
padding: 0px;
margin: 0;
border: none;
display: block;
height: 0px;
overflow: hidden;
}

@jeffreynolte
Copy link

I am having the same issues in both mobile safari and chrome. The issue is that the application is a full page app, when pulling in the app into an iframe and using the library it does not respond. I did not have the issue of 0px height but the content within the frame was trying to scale proportionately with the width of the header element. Note this is a rails app using leaflet.js, angular.js and some other JS libraries. I am not sure if that has a bearing.

@brianlmerritt
Copy link

Using current versions of chrome I've found that even with a desktop browser, height:0px; results in an invisible iframe. The demo still works fine, but trying to iframe either Moodle or WordPress (with responsiveiframe.js first in the header and then the footer) does not display anything. If I set the height to any value it becomes stuck there. Both Moodle and WordPress are php based, but are set to load jquery etc.

@inadarei
Copy link
Contributor

Unfortunately, it's impossible to guess what may be the cause in a large system such as Moodle or WordPress: there could be N number of things, including some conflicts.

If you can please create a jsfiddle or jsbin or some other test-case where the problem can be seen and debugged, that would be very helpful.

Thanks

@brianlmerritt
Copy link

Thanks - I've sent you a tweet so I can DM you the fiddle (sorry, the content doesn't belong to me so I can't share it in public). It may be a problem with jquery in no.confict mode

@al-ramadhan
Copy link

Just set height into something px and your iframe will be visible on mobile web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants