From 8788cbb105a55a692217c2aca868bd0fcf851c1f Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Mon, 22 Dec 2025 13:46:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomKeyboard/View/KBKeyBoardMainView.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CustomKeyboard/View/KBKeyBoardMainView.m b/CustomKeyboard/View/KBKeyBoardMainView.m index ce5da50..87d1889 100644 --- a/CustomKeyboard/View/KBKeyBoardMainView.m +++ b/CustomKeyboard/View/KBKeyBoardMainView.m @@ -44,7 +44,7 @@ // 键盘区域(高度按照设计值做等比缩放,避免不同机型上按键被压缩/拉伸) CGFloat keyboardAreaHeight = KBFit(200.0f); CGFloat bottomInset = KBFit(4.0f); - CGFloat topBarHeight = KBFit(40.0f); +// CGFloat topBarHeight = KBFit(40.0f); CGFloat barSpacing = KBFit(6.0f); self.keyboardView = [[KBKeyboardView alloc] init]; @@ -65,10 +65,15 @@ make.edges.equalTo(self); }]; +// [self.topBar mas_makeConstraints:^(MASConstraintMaker *make) { +// make.left.right.equalTo(self); +// make.top.equalTo(self.mas_top).offset(0); +// make.height.mas_equalTo(topBarHeight); +// }]; [self.topBar mas_makeConstraints:^(MASConstraintMaker *make) { make.left.right.equalTo(self); make.top.equalTo(self.mas_top).offset(0); - make.height.mas_equalTo(topBarHeight); + make.bottom.equalTo(self.keyboardView.mas_top).offset(0); }]; [self.suggestionBar mas_makeConstraints:^(MASConstraintMaker *make) {