Fixes 'phone' vs 'tablet' for iOS.

This commit is contained in:
Joshua A. Horton 2018-05-04 12:26:12 +07:00
parent 73df886272
commit dd03de2a2e

View file

@ -91,7 +91,8 @@ namespace com.keyman {
this.formFactor='phone';
}
if(this.formFactor == 'phone' && Math.max(screen.width,screen.height) > 720) {
// Trust what iOS tells us for phone vs tablet.
if(this.formFactor == 'phone' && Math.max(screen.width,screen.height) > 720 && this.OS != 'iOS') {
this.formFactor='tablet';
}