Correct iPad fudge factors for keyboard size detection
This commit is contained in:
parent
8ecf313a81
commit
d36d5ba8ac
|
@ -28,12 +28,12 @@ function calcHeight() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// iPad landscape, so we have a bigger keyboard
|
// 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;
|
withoutKeyboard -= 128;
|
||||||
}
|
}
|
||||||
|
|
||||||
// iPad portrait also has a bigger keyboard
|
// 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;
|
withoutKeyboard -= 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue