You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ASBinder setNeedsLayout sometime called before ASCellNode loaded
- (void)layoutIfNeeded
{
BOOL shouldApply = NO;
BOOL loaded = NO;
id viewOrLayer = nil;
{
_bridge_prologue_write;
shouldApply = ASDisplayNodeShouldApplyBridgedWriteToView(self);
loaded = __loaded(self);
viewOrLayer = _view ?: _layer;
if (shouldApply == NO && loaded) {
// The node is loaded but we're not on main.// We will call layoutIfNeeded on the view or layer when we apply the pending state. __layout will in turn be called on us (see -[_ASDisplayLayer layoutSublayers]).// We need to call it on main if the node is loaded to support automatic subnode management.// We can't release the lock before applying to pending state, or it may be flushed before it can be applied.
[ASDisplayNodeGetPendingState(self) layoutIfNeeded];
}
}
if (shouldApply) {
// The node is loaded and we're on main.// Message the view or layer which in turn will call __layout on us (see -[_ASDisplayLayer layoutSublayers]).
[viewOrLayer layoutIfNeeded];
} elseif (loaded == NO) {
// The node is not loaded and we're not on main.
[self__layout];
}
}
In this case, ASCellNode constrainedSize can't change no more
The text was updated successfully, but these errors were encountered:
ASDisplayNode+UIViewBridge.mm
ASBinder setNeedsLayout sometime called before ASCellNode loaded
In this case, ASCellNode constrainedSize can't change no more
The text was updated successfully, but these errors were encountered: