mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Address comments in #793
This commit is contained in:
@@ -82,7 +82,7 @@ typedef NSUInteger ASCellNodeAnimation;
|
|||||||
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event ASDISPLAYNODE_REQUIRES_SUPER;
|
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event ASDISPLAYNODE_REQUIRES_SUPER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks the node as needing layout. Convenience for use whether the view / layer is loaded or not. Safe to call from a background thread.
|
* Marks the node as needing layout. Convenience for use whether the view / layer is loaded or not.
|
||||||
*
|
*
|
||||||
* If this node was measured, calling this method triggers an internal relayout: the calculated layout is invalidated,
|
* If this node was measured, calling this method triggers an internal relayout: the calculated layout is invalidated,
|
||||||
* and the supernode is notified or (if this node is the root one) a full measurement pass is executed using the old constrained size.
|
* and the supernode is notified or (if this node is the root one) a full measurement pass is executed using the old constrained size.
|
||||||
|
|||||||
@@ -559,6 +559,9 @@ typedef void (^ASDisplayNodeDidLoadBlock)(ASDisplayNode *node);
|
|||||||
*
|
*
|
||||||
* If this node was measured, calling this method triggers an internal relayout: the calculated layout is invalidated,
|
* If this node was measured, calling this method triggers an internal relayout: the calculated layout is invalidated,
|
||||||
* and the supernode is notified or (if this node is the root one) a full measurement pass is executed using the old constrained size.
|
* and the supernode is notified or (if this node is the root one) a full measurement pass is executed using the old constrained size.
|
||||||
|
*
|
||||||
|
* Note: ASCellNode has special behavior in that calling this method will automatically notify
|
||||||
|
* the containing ASTableView / ASCollectionView that the cell should be resized, if necessary.
|
||||||
*/
|
*/
|
||||||
- (void)setNeedsLayout;
|
- (void)setNeedsLayout;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user