[AC-2889] Master/Detail Application Template incorrectly defines Tablet
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-04T13:02:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Chris Nelson |
Assignee | Devang Gandhi |
Created | 2012-02-09T08:32:13.000+0000 |
Updated | 2016-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.
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.
Worked for me. Thanks