修复键盘功能键 发送按钮距离底部很远

This commit is contained in:
2025-12-19 20:40:53 +08:00
parent 8d0939cd78
commit 200b1ab9f8
6 changed files with 6 additions and 11 deletions

View File

@@ -162,15 +162,12 @@
[self.rightButtonContainer addSubview:self.clearButtonInternal];
[self.rightButtonContainer addSubview:self.sendButtonInternal];
//
// 8px稿
CGFloat smallH = KBFit(41.0f);
CGFloat bigH = KBFit(56.0f);
// /稿
CGFloat vSpace = KBFit(4.0f);
CGFloat vSpace = KBFit(8.0f);
[self.pasteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.rightButtonContainer.mas_top);
make.left.right.equalTo(self.rightButtonContainer);
make.height.mas_equalTo(smallH);
}];
[self.deleteButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.pasteButtonInternal.mas_bottom).offset(vSpace);
@@ -185,10 +182,8 @@
[self.sendButtonInternal mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.clearButtonInternal.mas_bottom).offset(vSpace);
make.left.right.equalTo(self.rightButtonContainer);
// smallH
make.height.greaterThanOrEqualTo(@(smallH));
make.height.lessThanOrEqualTo(@(bigH));
make.bottom.lessThanOrEqualTo(self.rightButtonContainer.mas_bottom);
make.height.equalTo(self.pasteButtonInternal);
make.bottom.equalTo(self.rightButtonContainer.mas_bottom);
}];
// 2.