This commit is contained in:
2025-12-22 13:46:45 +08:00
parent 8a344b293d
commit 8788cbb105

View File

@@ -44,7 +44,7 @@
// / // /
CGFloat keyboardAreaHeight = KBFit(200.0f); CGFloat keyboardAreaHeight = KBFit(200.0f);
CGFloat bottomInset = KBFit(4.0f); CGFloat bottomInset = KBFit(4.0f);
CGFloat topBarHeight = KBFit(40.0f); // CGFloat topBarHeight = KBFit(40.0f);
CGFloat barSpacing = KBFit(6.0f); CGFloat barSpacing = KBFit(6.0f);
self.keyboardView = [[KBKeyboardView alloc] init]; self.keyboardView = [[KBKeyboardView alloc] init];
@@ -65,10 +65,15 @@
make.edges.equalTo(self); 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) { [self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self); make.left.right.equalTo(self);
make.top.equalTo(self.mas_top).offset(0); 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) { [self.suggestionBar mas_makeConstraints:^(MASConstraintMaker *make) {