Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26077] iOS: Ti.UI.convertUnits returns incorrect values for 3x resolution devices

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-06-08T14:37:51.000+0000
Affected Version/sRelease 7.3.0
Fix Version/sRelease 7.5.0
ComponentsiOS
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2018-05-30T14:09:14.000+0000
Updated2018-10-23T12:54:33.000+0000

Description

Calls to Ti.UI.convertUnits return invalid values for 3x iOS devices. It appears to be multiplying by 2x instead under the hood.

Comments

  1. Christopher Williams 2018-05-30

    https://github.com/appcelerator/titanium_mobile/pull/10080
  2. Samir Mohammed 2018-10-23

    *Closing ticket* Verified fix in SDK Version 7.5.0.v20181023020529. Ti.UI.convertUnits now returns the correct values for 3x resolution devices. Ti.Platform.displayCaps.logicalDensityFactor now equals 3 on 3x resolution devices. *Test Environment*
       APPC Studio: 5.1.0.201808080937
       iPhone 6 Sim (iOS 12)
       APPC CLI: 7.0.6
       Operating System Name: Mac OS Mojave
       Operating System Version: 10.14
       Node.js Version: 8.9.1
       Xcode 10.0
       

JSON Source