Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28145] iOS: Support string values with units for property values

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-06-23T09:34:13.000+0000
Affected Version/sRelease 9.2.0
Fix Version/sRelease 10.0.1
ComponentsiOS
Labelsn/a
ReporterChristopher Williams
AssigneeGary Mathews
Created2020-09-18T17:13:03.000+0000
Updated2021-06-23T09:34:13.000+0000

Description

I ran into this on the unit tests when we had image mismatches for a view with a border radius and shadow. I finally realized the issue is that the shadow's values are purely numeric, so are done in points (or dip) - so the actual pixel value will differ based on device density/scale. For API parity, it would make sense for shadow property values to support String values that denote a unit in the same way other view properties like width/height/top/bottom do.

Comments

  1. Gary Mathews 2021-05-13

    master: https://github.com/appcelerator/titanium_mobile/pull/12807
  2. Ewan Harris 2021-06-23

    merged to master and 10_0_X

JSON Source