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

QMUITextView使用QMUIViewSelfSizingHeight,height值不正确 #1587

Open
fanyuecheng opened this issue Oct 23, 2024 · 0 comments
Open

QMUITextView使用QMUIViewSelfSizingHeight,height值不正确 #1587

fanyuecheng opened this issue Oct 23, 2024 · 0 comments

Comments

@fanyuecheng
Copy link

Bug 表现
// 以前这么写
CGSize size = [view sizeThatFits:CGSizeMake(width, CGFLOAT_MAX)];
view.frame = CGRectMake(x, y, width, size.height);

// 现在可以这么写:
view.frame = CGRectMake(x, y, width, QMUIViewSelfSizingHeight);

QMUITextView使用QMUIViewSelfSizingHeight,height值不正确

截图
截屏2024-10-23 15 56 23

如何重现

  1. ...
  2. ...

预期的表现
正常情况下,应该是什么表现

其他信息

  • 设备: [例如模拟器、iPhone、iPad]
  • iOS 版本: [iOS 14.x]
  • Xcode 版本: [Xcode 12.x]
  • QMUI 版本: [4.x.x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant