This commit is contained in:
2026-01-16 17:41:03 +08:00
parent 28852a8d4b
commit 619c02f236
2 changed files with 38 additions and 41 deletions

View File

@@ -91,7 +91,7 @@ static NSInteger const kRepliesLoadCount = 3;
[self.inputView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self);
make.height.mas_equalTo(50);
self.inputBottomConstraint = make.bottom.equalTo(self);
self.inputBottomConstraint = make.bottom.equalTo(self).offset(-KB_SafeAreaBottom());
}];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -354,17 +354,15 @@ static NSInteger const kRepliesLoadCount = 3;
inSection:section]];
}
//
[UIView performWithoutAnimation:^{
//
[self.tableView beginUpdates];
if (insertIndexPaths.count > 0) {
[self.tableView insertRowsAtIndexPaths:insertIndexPaths
withRowAnimation:UITableViewRowAnimationNone];
withRowAnimation:UITableViewRowAnimationFade];
}
[self.tableView endUpdates];
[self.tableView layoutIfNeeded];
[self restoreHeaderAnchor:anchor];
}];
NSLog(@"[KBAICommentView] loadMore(after) section=%ld offsetY=%.2f contentSizeH=%.2f boundsH=%.2f rows=%ld",
(long)section,
@@ -411,17 +409,15 @@ static NSInteger const kRepliesLoadCount = 3;
//
[comment collapseReplies];
//
[UIView performWithoutAnimation:^{
//
[self.tableView beginUpdates];
if (deleteIndexPaths.count > 0) {
[self.tableView deleteRowsAtIndexPaths:deleteIndexPaths
withRowAnimation:UITableViewRowAnimationNone];
withRowAnimation:UITableViewRowAnimationFade];
}
[self.tableView endUpdates];
[self.tableView layoutIfNeeded];
[self restoreHeaderAnchor:anchor];
}];
NSLog(@"[KBAICommentView] collapse(after) section=%ld offsetY=%.2f contentSizeH=%.2f boundsH=%.2f rows=%ld",
(long)section,

View File

@@ -245,11 +245,12 @@
initWithFrame:CGRectMake(0, 0, KB_SCREEN_WIDTH, customViewHeight)];
LSTPopView *popView =
[LSTPopView initWithCustomView:customView
parentView:self.view
parentView:nil
popStyle:LSTPopStyleSmoothFromBottom
dismissStyle:LSTDismissStyleSmoothToBottom];
self.popView = popView;
popView.priority = 1000;
popView.isAvoidKeyboard = false;
popView.hemStyle = LSTHemStyleBottom;
popView.dragStyle = LSTDragStyleY_Positive;
popView.dragDistance = customViewHeight * 0.5;