Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-842

Alloy: Have the measurement builtin use actual pixels for iOS as well

    Details

    • Sprint:
      2013 Sprint 22

      Description

      Right now, the measurement builtin converts dp to px and visa versa for Android only. For iOS, the given value is returned as is.

      This is understandable, since you would typically use the builtin's methods to get the right dimension for Android in it's system default px unit, based on a dp value you use on iOS.

      But of course this is not really accurate since on retina screens 1dp actually correspondents to 2px.

      So I'd propose have the builtin take this into account, either as the default or as an option. I prefer to have it as the default.

      The PR: https://github.com/appcelerator/alloy/pull/249

      Related docs: http://docs.appcelerator.com/titanium/latest/#!/guide/Transitioning_to_the_New_UI_Layout_System-section-30088148_TransitioningtotheNewUILayoutSystem-UniversalUnitSupport

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              mrahman Mostafizur Rahman
              Tester:
              Federico Casali
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration