1
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#import "Masonry.h"
|
||||
#import "KBSkinManager.h"
|
||||
#import "KBBackspaceUndoManager.h"
|
||||
#import "KBKeyboardLayoutConfig.h"
|
||||
|
||||
@interface KBKeyBoardMainView ()<KBToolBarDelegate, KBKeyboardViewDelegate, KBEmojiPanelViewDelegate, KBSuggestionBarViewDelegate>
|
||||
@property (nonatomic, strong) KBToolBar *topBar;
|
||||
@@ -45,6 +46,13 @@
|
||||
|
||||
// 键盘区域(高度按照设计值做等比缩放,避免不同机型上按键被压缩/拉伸)
|
||||
CGFloat keyboardAreaHeight = KBFit(200.0f);
|
||||
KBKeyboardLayoutConfig *layoutConfig = [KBKeyboardLayoutConfig sharedConfig];
|
||||
if (layoutConfig) {
|
||||
CGFloat configHeight = [layoutConfig keyboardAreaScaledHeight];
|
||||
if (configHeight > 0.0) {
|
||||
keyboardAreaHeight = configHeight;
|
||||
}
|
||||
}
|
||||
CGFloat bottomInset = KBFit(4.0f);
|
||||
// CGFloat topBarHeight = KBFit(40.0f);
|
||||
CGFloat barSpacing = KBFit(6.0f);
|
||||
|
||||
Reference in New Issue
Block a user