We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
模拟器
iOS 12.1
10.1
3.1.7
使用QMUILabel的qmui_lineHeight设置行高,改变控件字号大小的时候,必须同时改变qmui_lineHeight和重新setText:才能生效,否则字体会被截取。
被截取的情况和代码: 未被截取的情况和代码:
QMUILabel当设置了qmui_lineHeight后采用setAttributedText:方法设置行高,但是设置qmui_lineHeight后,还是使用之前的attributedText,如下图所示: attributedString对象: text对象: text对象的样式覆盖了attributedString对象的样式导致出现的问题
The text was updated successfully, but these errors were encountered:
请按 e771e05 修改后再尝试?下个版本将会带上这个改动。
Sorry, something went wrong.
收到
已发布 3.1.9 修复该问题。
No branches or pull requests
请填写运行环境
模拟器
iOS 12.1
10.1
3.1.7
请描述具体问题
使用QMUILabel的qmui_lineHeight设置行高,改变控件字号大小的时候,必须同时改变qmui_lineHeight和重新setText:才能生效,否则字体会被截取。
相关截图(断点的堆栈、控制台的 log)
被截取的情况和代码:
未被截取的情况和代码:
原因分析
QMUILabel当设置了qmui_lineHeight后采用setAttributedText:方法设置行高,但是设置qmui_lineHeight后,还是使用之前的attributedText,如下图所示:
attributedString对象:
text对象:
text对象的样式覆盖了attributedString对象的样式导致出现的问题
The text was updated successfully, but these errors were encountered: