Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23233] Android: Alloy.builtins measurement not working for xxxhigh

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterMichael Bahl
AssigneeUnknown
Created2016-04-07T16:01:27.000+0000
Updated2018-02-28T19:55:17.000+0000

Description

Alloy.builtins measurement only supports resolution *xhigh* and *high* but not Ti.Platform.displayCaps.density *xxxhigh* as used by *Nexus 6P*

Comments

  1. Sharif AbuDarda 2016-04-07

    Hello, Alloy.builtins.measurement is a collection of utilities for converting between different display units. Can you provide example of what you are trying to do with it. And what's not working? Regards, Sharif
  2. Michael Bahl 2016-04-07

    The derived measurement ffile looks like:
       exports.pxToDP = function(val) {
           switch (density) {
             case "xhigh":
               return val / 3;
       
             case "high":
               return val / 2;
       
             default:
               return val;
           }
       };
       
    The cases for density xxhigh and xxxhigh are missing

JSON Source