mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add preferredSize as getter to ASLayoutElementStyle (#2427)
This commit is contained in:
committed by
Adlai Holler
parent
67489492ee
commit
4b914f8e15
@@ -250,10 +250,11 @@ extern NSString * const ASLayoutElementStyleLayoutPositionProperty;
|
||||
* @discussion This method is optional, but one of either preferredSize or preferredLayoutSize is required
|
||||
* for nodes that either have no intrinsic content size or
|
||||
* should be laid out at a different size than its intrinsic content size. For example, this property could be
|
||||
* set on an ASImageNode to display at a size different from the underlying image size.
|
||||
* set on an ASImageNode to display at a size different from the underlying image size.
|
||||
*
|
||||
* @warning Calling the getter when the size's width or height are relative will cause an assert.
|
||||
*/
|
||||
@property (nonatomic, assign) CGSize preferredSize;
|
||||
- (CGSize)preferredSize UNAVAILABLE_ATTRIBUTE;
|
||||
|
||||
/**
|
||||
* @abstract An optional property that provides a minimum size bound for a layout element. If provided, this restriction will
|
||||
|
||||
Reference in New Issue
Block a user