优化键盘弹出宽度

优化键盘按钮视觉效果
This commit is contained in:
2025-11-21 19:40:57 +08:00
parent af8fff5b13
commit fd7b3a7f75
2 changed files with 73 additions and 8 deletions

View File

@@ -620,7 +620,8 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
//
CGRect btnFrameInSelf = [button convertRect:button.bounds toView:self];
CGFloat previewWidth = MAX(CGRectGetWidth(btnFrameInSelf) * 1.4, 42.0);
// CGFloat previewWidth = MAX(CGRectGetWidth(btnFrameInSelf) * 1.4, 42.0);
CGFloat previewWidth = 42;
CGFloat previewHeight = CGRectGetHeight(btnFrameInSelf) * 1.2;
CGFloat centerX = CGRectGetMidX(btnFrameInSelf);
CGFloat centerY = CGRectGetMinY(btnFrameInSelf) - previewHeight * 0.6;