(trunk web) hide the iPhone address bar on orientation change
This commit is contained in:
parent
01604035e2
commit
7dd74187b0
|
@ -70,11 +70,14 @@ $(document).ready( function() {
|
||||||
// different padding.
|
// different padding.
|
||||||
$('div.dialog_container div.dialog_window a').css('padding', '2px 10px 3px');
|
$('div.dialog_container div.dialog_window a').css('padding', '2px 10px 3px');
|
||||||
}
|
}
|
||||||
if (iPhone)
|
if (iPhone){
|
||||||
|
window.onload = function(){ setTimeout(function() { window.scrollTo(0,1); },500); };
|
||||||
|
window.onorientationchange = function(){ setTimeout( function() { window.scrollTo(0,1); },100); };
|
||||||
if(window.navigator.standalone)
|
if(window.navigator.standalone)
|
||||||
// Fix min height for iPhone when run in full screen mode from home screen
|
// Fix min height for iPhone when run in full screen mode from home screen
|
||||||
// so the footer appears in the right place
|
// so the footer appears in the right place
|
||||||
$('body div#torrent_container').css('min-height', '338px');
|
$('body div#torrent_container').css('min-height', '338px');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue