mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[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:
committed by
Adlai Holler
parent
e8f01f082a
commit
f574f2c54e
@@ -107,7 +107,7 @@ FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBefo
|
||||
ASDisplayNode * __weak _supernode;
|
||||
|
||||
ASLayoutableStyle *_style;
|
||||
CGSize _preferredFrameSize;
|
||||
ASLayoutableSize _size;
|
||||
|
||||
ASSentinel *_displaySentinel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user