From dd03de2a2e7eb7dc5cc1b90ef01f840c0aedacf7 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Fri, 4 May 2018 12:26:12 +0700 Subject: [PATCH] Fixes 'phone' vs 'tablet' for iOS. --- web/source/kmwdevice.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/source/kmwdevice.ts b/web/source/kmwdevice.ts index ecc9ce4789..6f78d72255 100644 --- a/web/source/kmwdevice.ts +++ b/web/source/kmwdevice.ts @@ -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'; }