1
This commit is contained in:
@@ -422,7 +422,12 @@
|
||||
|
||||
- (void)updateChatViewBottomInset {
|
||||
CGFloat bottomSpacing = (self.currentKeyboardHeight > 0.0) ? (self.currentKeyboardHeight + 8.0) : self.baseInputBarBottomSpacing;
|
||||
CGFloat bottomInset = self.voiceInputBarHeight + bottomSpacing;
|
||||
|
||||
// 关键修复:减少 bottomInset,因为 chatView 已经通过约束避开了底部的 avatar 区域
|
||||
// 只需要留出一点空间(比如20)让最后一条消息不紧贴 chatView 底部即可
|
||||
CGFloat bottomInset = 20; // 简单的缓冲空间
|
||||
|
||||
NSLog(@"[KBAIHomeVC] 更新 ChatView bottomInset: %.2f", bottomInset);
|
||||
|
||||
for (NSIndexPath *indexPath in self.collectionView.indexPathsForVisibleItems) {
|
||||
KBPersonaChatCell *cell = (KBPersonaChatCell *)[self.collectionView cellForItemAtIndexPath:indexPath];
|
||||
|
||||
Reference in New Issue
Block a user