0

Using the Ext JS Framework the following device is detected as a mobile phone and not as a tablet. This might be a bug in the Ext framework. Are there any known workarounds or fixes?

console.debug("phone: ");
console.debug((Ext.is.Phone));    //true

console.debug("tablet: ");
console.debug((Ext.is.Tablet));    //false
Jacob
  • 3,580
  • 22
  • 82
  • 146

2 Answers2

0

According to the docs and source Ext.is.Tablet seems to be an alias of Ext.is.iPad.

You can probably solve this by extending Ext.is.platforms with a suitable regex for the Nexus7 and re-initializing the object:

Ext.is.platforms.push({
    property: 'userAgent'
    regex: /Nexus 7/i,
    identity: 'Nexus7'
});
Ext.is.init();

console.log(Ext.is.Nexus7);
matt
  • 4,027
  • 2
  • 25
  • 32
0

You could try WURFL.js Then look in WURFL.form_factor

jonarnes
  • 81
  • 5