Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2889] Master/Detail Application Template incorrectly defines Tablet

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2012-04-04T13:02:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterChris Nelson
AssigneeDevang Gandhi
Created2012-02-09T08:32:13.000+0000
Updated2016-03-08T07:47:51.000+0000

Description

As identified in app.js using: var isTablet = osname === 'ipad' || (osname === 'android' && (width > 899 || height > 899)); This variable is caught by the Galaxy Nexus and a tablet/iPad view is shown on the device. Removing (osname === 'android' && (width > 899 || height > 899) fixes the issue.

Comments

  1. Tim Poulsen 2012-02-09

    I provide an alternate tablet detection technique at https://github.com/skypanther/ScreenSizes It determines screen size based on both number of pixels & display density to help cover the super-high res but small screen devices like the Galaxy Nexus.
  2. Chris Nelson 2012-02-09

    Worked for me. Thanks

JSON Source