Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.2.0 QMUIBadge 当 qmui_badgeInteger 是以1开头两位数未读数,未读数显示可能不是正圆 #1096

Closed
ZXCheng opened this issue Sep 16, 2020 · 3 comments
Labels

Comments

@ZXCheng
Copy link

ZXCheng commented Sep 16, 2020

现存问题或期望目标
建议将 UIView+QMUIBadge.m 文件 中方法 - (CGSize)sizeThatFits:(CGSize)size {} 修改为

  • (CGSize)sizeThatFits:(CGSize)size {
    CGSize result = [super sizeThatFits:size];
    if (result.width < result.height) {
    result = CGSizeMake(result.height, result.height);
    }
    return result;
    }
@MoLice
Copy link
Collaborator

MoLice commented Sep 16, 2020

image
image

你是说这样?这是符合预期的表现。
这种 issue 请贴截图,否则沟通成本太高,可能不予处理。

@ZXCheng
Copy link
Author

ZXCheng commented Sep 17, 2020

截屏2020-09-17 下午12 51 27
截屏2020-09-17 下午12 51 41

view.qmui_badgeContentEdgeInsets = UIEdgeInsets.init(top: 2, left: 4, bottom: 2, right: 4)

@MoLice MoLice added bug and removed suggest labels Sep 17, 2020
@MoLice
Copy link
Collaborator

MoLice commented Sep 29, 2020

已发布 4.2.1 修复该问题。

@MoLice MoLice closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants