Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7873] iOS: Anchor point affects pinning

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T20:44:07.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterStephen Tramer
AssigneeEric Merriman
Created2012-03-02T17:14:49.000+0000
Updated2017-06-07T20:44:07.000+0000

Description

In iOS, setting the anchorPoint property of a view's layer influences how it is laid out with respect to the geometry of the containing view. It does not affect "just transforms" on the object (in actuality, it's affecting the identity transform), but also the ability to pin l/r/t/b on views. From Blain in IRC as an example: bq. Position should be clarified. On iOS, position is defined by the anchorpoint, which defaults to 0.5, 0.5. That is, for an object whose top is 50, left is 50, bottom is 100, and right is 100, x=75, y=75. If the anchorpoint was changed to 0,0, the same object with given top/left/bottom/right bounds's x and y would be 50. If the anchorpoint is 1,1, the same object's x and y would be 100. See: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Layers.html#//apple_ref/doc/uid/TP40006082-SW9

Comments

  1. Lee Morris 2017-06-07

    Closing ticket due to time passed and lack of progress in the past 5 years.

JSON Source