mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +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
@@ -827,9 +827,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* size. For example, this property could be set on an ASImageNode to display at a size different from the underlying
|
||||
* image size.
|
||||
*
|
||||
* @return The preferred frame size of this node
|
||||
* @return Try to create a CGSize for preferredFrameSize of this node from the width and height property of this node. It will return CGSizeZero if widht and height dimensions are not of type ASDimensionUnitPoints.
|
||||
*
|
||||
* @deprecated Deprecated in version 2.0: Use sizing properties instead: height, minHeight, maxHeight, width, minWidth, maxWidth
|
||||
* @deprecated Deprecated in version 2.0: Just calls through to set the height and width property of the node. Convert to use sizing properties instead: height, minHeight, maxHeight, width, minWidth, maxWidth.
|
||||
*/
|
||||
@property (nonatomic, assign, readwrite) CGSize preferredFrameSize ASDISPLAYNODE_DEPRECATED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user