This is frustrating and I have seen and tried many answers but still end up with a zoomed effect on my webpage when I view on iOS. I have experimented with various viewport settings but the initial view is always zoomed.
Here is the experimental link. The page has a fixed header and footer and looks and functions fine in web browsers but in iOS it looks zoomed in. If I double tap, it resumes the desired view.
http://jbrubaker.fatcow.com/dealer/index2.html
Viewport settings:
Is it a CSS issues?
A fixed element issue?
Thanks in advance.
Assuming that you are using UIWebView to view the site.
Set the BOOLEAN scalesPageToFit property of your UIWebView to YES.
This would hopefully solve your issue. If not then get back with your comments
Related
I noticed that when I inertia scroll my webpage within a WebView on ios, the fixed navbar disappears...and then when the scrolling stops, the navbar reappears.
I assumed that a fixed navbar would stay fixed and visible all the time. I already tried disabling the inertia scroll by adding -webkit-overflow-scrolling: auto; to my body element, but that did not change the scrolling at all so it did not fix the disappearing.
When I viewed/scrolled my website within Safari, the navbar stayed visible all the time.
Conclusion is, it has to do with webview controller and maybe some property that needs to be set.
I will search stack for that, but in the meantime, if anyone has ideas on how to prevent this please let me know.
All help/feedback is appreciated.
Update: Reading other posts, this may be an iOS11 issue. Now that I think about it, the webview worked fine until recent update. I will update question if solution found.
I found the problem to be with UIWebView.
Using WKWebkit fixed the issue for me as it is the apple recommended view for web content since the update.
I want to display a page with an image on top and with a WebView containing HTML text.
The problem is that WebView has its own scrolling so when user scrolls WebView is scrolling while image stays in place.
Is is possible to disable WebView scrolling? So image and WebView would scroll simultaneously.
I know that one solution is to embed image into HTML, but are there other solutions?
Just set Webview.IsEnabled to false. It works when you don't have to interact with the Webpage.
We faced the same issue. The best way we've found of doing this is to create a custom renderer for the WebView. This page outlines what is required for iOS and Android, but is lacking in Windows. This worked for us, hope this helps.
I need help making my web site iframe scroll on the ios8 ipad.
https://secure.gymnasticseast.com/4dcgi/1/class_manager.a4d?loc=bellevue
This shows an iframe the slides horizontally, but does not move at all vertically.
I've tried all of the combinations of css, inline styles suggested here to get it to work, but none have yet to scroll vertically on the iPad.
Please help!
Thanks!!
In my experience IFrames an Framesets don't work on Safari mobile, there are other solutions that do work depending on the problem.
Follow this link that confirms that.
I am very new to HTML5 development for ipad. I am creating my first application for ipad using HTML5. Everything is done except I am facing one problem. Problem description is.
There is one vertical overflowing div. This page is viewed properly in computer's browser but when the same page is viewed in ipad the overflowing section is cutoff and it appears that there is no overflowing content.
Please let me know the proper way of doing it.
On the iPad scrollable div's using overflow scrollbars will not appear on that div. The only way to scroll is using a two finger swipe.
Joe says that Scrollability is not yet ready to be used, so I wouldn't implement it in a production system.
To do this you have other options like:
http://cubiq.org/scrolling-div-on-iphone-ipod-touch
You want native-like scrolling on the iPad in your HTML5 application? You might want to check out a project called Scrollability by Joe Hewitt: http://joehewitt.github.com/scrollability/
Check out https://github.com/appmobi/aux_web (aUX_webScroll) . I'm the author, so if you have any questions, let me know.
iOS5 has the new property to allow scrolling on divs, but you'll find out that when you use it in a webview, the whole webview moves too and surprisingly, not everyone upgrades the OS.
I wrote an article about new features in iOS 5. Also this topic is covered on section -webkit-overflow-scrolling: http://samuli.hakoniemi.net/ios-5-and-new-features-for-web-developers/#webkit-overflow-scrolling
I am designing some html pages for iPad. While trying out css overflow property like yscroll, auto. The scroll bar is not appearing in iPad and also the content not getting scroll. I tried in ipad simulator as well as in device. Is there any other way to achieve this property. Please help me out. Thanks in advance
There are no scrollbars in any of the iPhone OS. Use 2 fingers to scroll. This is the expected gesture and will unlikely be changed.
make sure your body and divs have not a
position:fixed
else scrolling would not work.