[Layout] Further deprecation steps for preferredFrameSize (#2255)

* Deprecate preferredFrameSize

- Remove all support for preferredFrameSize in ASDK
- preferredFrameSize setter calls through and sets the width and height of the node
- preferredFrameSize getter tries to return a CGSize based on the width and height properties otherwise if this is not possible it throws

* Address comments

* Return CGSizeZero for preferredFrameSize unless width and height are ASDimensionUnitPoints

* Better comment for preferredFrameSize and remove lock in calculateSizeThatFits:
This commit is contained in:
Michael Schneider
2016-09-27 13:07:36 -07:00
committed by Adlai Holler
parent e8f01f082a
commit f574f2c54e
7 changed files with 50 additions and 69 deletions

View File

@@ -107,7 +107,7 @@ FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBefo
ASDisplayNode * __weak _supernode;
ASLayoutableStyle *_style;
CGSize _preferredFrameSize;
ASLayoutableSize _size;
ASSentinel *_displaySentinel;