Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14806

ProjectTemplate: values used as comparison to determine device form factor are wrong

    Details

    • Story Points:
      5
    • Sprint:
      2013 Sprint 25

      Description

      Problem description

      In Appcelerator Studio template samples for classic projects, the values used as comparison to determine if the device is a tablet or a handheld are outdated and could lead to a wrong detection.

      Steps to reproduce

      Create a new Single Window Project and open app.js. Check line:

      var isTablet = osname === 'ipad' || (osname === 'android' && (width > 899 || height > 899));
      

      A Google Galaxy Nexus device (for example) has those values:

      height: 1184 width:  720
      

      As a result, it is being detected as a 'tablet' while is a 'handheld' device.

        Attachments

          Activity

            People

            • Assignee:
              csullivan Christian Sullivan
              Reporter:
              fcasali Federico Casali
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17169
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code