Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 094d257

Browse files
committed
Force the layout of subviews when _ASTableViewCell transitioned to another state
Relayout will be triggered in layoutSubviews (if needed).
1 parent 2d575fc commit 094d257

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

AsyncDisplayKit/ASTableView.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ - (void)layoutSubviews
128128
- (void)didTransitionToState:(UITableViewCellStateMask)state
129129
{
130130
[self setNeedsLayout];
131+
[self layoutIfNeeded];
131132
[super didTransitionToState:state];
132133
}
133134

0 commit comments

Comments
 (0)