Correct iPad fudge factors for keyboard size detection

This commit is contained in:
Sam 2017-09-28 17:26:54 +10:00
parent 8ecf313a81
commit d36d5ba8ac
1 changed files with 2 additions and 2 deletions

View File

@ -28,12 +28,12 @@ function calcHeight() {
}
// iPad landscape, so we have a bigger keyboard
if (window.innerWidth > window.innerHeight && window.innerHeight > 690) {
if (window.innerWidth > window.innerHeight && window.innerHeight > 665) {
withoutKeyboard -= 128;
}
// iPad portrait also has a bigger keyboard
if (window.innerWidth < window.innerHeight && window.innerHeight > 950) {
if (window.innerWidth < window.innerHeight && window.innerHeight > 920) {
withoutKeyboard -= 45;
}