I have to get the window's height on Ipad to display something in the full height.
I have done this example page: http://daviddarx.com/stuffs/work/biceps/ipad/
Here is my js code, very simple, that only write the window.height() in the body:
generalResizeListener=function(){
screenW=$(window).width();
screenH=$(window).height();
$("body").html(screenH)
console.log(screenH);
}
$(window).resize(generalResizeListener);
There is two problem, on my ipad2 with IOS7: -In safari, but not in Chrome, the displayed value don't fit to the actual page height (I checked on screenshots)
-In Safari always, even if there isn't anything in the page, the page's height is bigger than the viewport and I can scroll down for something like 10-20px. That is the biggest probleme.
Do you know why is this happening? I haven't any css files in my demo page, so I really don't understand.
Thank you in advance for your help! David
@Gal V:
I already implemented this "hacky solution". Thank you for your answer, anyway! I looked a bit more in google and it seems to be a specific bug of safari IOS7:
-https://discussions.apple.com/message/23150650#23150650
-Scrolling problems on a web page with fixed header and footer in iOS7
-iOS 7 iPad Safari Landscape innerHeight/outerHeight layout issue