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

Selected defaultunit should be available under Ti.UI

    Details

    • Type: New Feature
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      SDK 3.3.0.RC

      Description

      If you set the defaultunit via tiapp.xml using <property name="ti.ui.defaultunit">dp</property> you can request this in run-time using Ti.App.Properties.getString('ti.ui.defaultunit');.

      However, I'd like to also have Ti.App.defaultUnit return one of the Ti.UI.UNIT_* constants, so that in a widget or module (where I'm not in control of the tiapp.xml) I can more easily detect the current setting and use this e.g. in Ti.UI.convertUnits when doing complex layout calculations.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration