However, in an iPad device the width is recognized and does a good job of resizing, but the height does not seem to do anything so the user can scroll down when they shouldn't be doing that.
Why does Safari no recognize the height parameter?
I had tried that code previously with the same issue. I do understand that the height is calculated from the width parameter if nothing is set by default. That's what makes this issue even more perplexing.
I have tried the same code on other devices (ie. bb playbook) which works. It's the ipad that's failing. (its a ipad3 I'm testing on)
frost
Member
19 Points
112 Posts
Safari iPad viewport height=device-height
Jun 20, 2012 09:14 PM|LINK
Hi,
I'm trying to get my site to fit on some mobile devices more accurately. I've tried adding the following meta tag:
However, in an iPad device the width is recognized and does a good job of resizing, but the height does not seem to do anything so the user can scroll down when they shouldn't be doing that.
Why does Safari no recognize the height parameter?
Thanks.
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Safari iPad viewport height=device-height
Jun 22, 2012 09:23 AM|LINK
Hi,
Just try the following code!
More info about META tag!
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
frost
Member
19 Points
112 Posts
Re: Safari iPad viewport height=device-height
Jun 22, 2012 02:32 PM|LINK
Thanks for the response.
I had tried that code previously with the same issue. I do understand that the height is calculated from the width parameter if nothing is set by default. That's what makes this issue even more perplexing.
I have tried the same code on other devices (ie. bb playbook) which works. It's the ipad that's failing. (its a ipad3 I'm testing on)
thanks.
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Safari iPad viewport height=device-height
Jun 23, 2012 05:00 PM|LINK
Hi,
Then you may have to use the fixed height, specifically for iPad!
Preparing your content for iPad!
https://developer.apple.com/library/safari/#technotes/tn2010/tn2262/_index.html
Hope it helps u...
Roopesh Reddy C
Roopesh's Space