We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da1b197 commit 8914c9aCopy full SHA for 8914c9a
1 file changed
TPKeyboardAvoiding/TPKeyboardAvoidingTableView.m
@@ -50,6 +50,11 @@ -(void)setFrame:(CGRect)frame {
50
}
51
52
-(void)setContentSize:(CGSize)contentSize {
53
+ if (CGSizeEqualToSize(contentSize, self.contentSize)) {
54
+ // Prevent triggering contentSize when it's already the same
55
+ // this cause table view to scroll to top on contentInset changes
56
+ return;
57
+ }
58
[super setContentSize:contentSize];
59
[self TPKeyboardAvoiding_updateContentInset];
60
0 commit comments