如何实现气泡效果 #391
huangzhengyi
started this conversation in
General
如何实现气泡效果
#391
Replies: 2 comments
-
#82 |
Beta Was this translation helpful? Give feedback.
0 replies
-
问题找到了,GetNaturalSize返回的大小是已经进行了DPI计算后的值 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当前的思路是,先设置RichEdit的固定宽度,然后获取行数,再根据文本行数*每行的高度,然后重设RichEdit高度
但是有个问题,如截图,输入的文本为2行,红色的获取行数却为3行,位置也是够用的情况
有没有能够让RichEdit 自适应文本,以最小宽高的方式来显示,像Label width=auto 时的效果一样
Beta Was this translation helpful? Give feedback.
All reactions