Flex 3.5 多行html文本滚动1-2行
很容易重现。如果您使用的是 Flex 3.5(不是我的选择),并且将鼠标滚轮滚动到具有多行 htmlText 的文本组件上,它将向下滚动 1(有时 2)行,即使那里没有文本。
有什么想法如何调整这个吗?即使我必须扩展 Text 并修改它,我也想解决这个问题。
谢谢!
之前:http://cl.ly/18373k441T0p080n2w0M
之后:http://cl.ly/0g2T1v161t2l2c3T0k0S
请注意,我确保正文下方没有空行(结束后结束)。请注意顶线现在如何被切断,并在底部添加了一条额外的线。
It's easy to reproduce. If you are using Flex 3.5 (not my choice) and you scroll the mousewheel over a Text component with multiple lines of htmlText, it will scroll down 1 (sometimes 2) lines, even though there is no text there.
Any ideas how to adjust this? Even if I had to extend Text and modify it, I want to fix this issue.
Thanks!
Before: http://cl.ly/18373k441T0p080n2w0M
After: http://cl.ly/0g2T1v161t2l2c3T0k0S
Please note, I made sure there is not a blank line below the body of text (it ended after the closing). Notice how the top line is now cut off, and an extra line was added at the bottom.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有几种解决方案。请阅读此和这个。对我来说第一个更可取。您可以使用此解决方案扩展标准组件。
There are several solutions for that. Please read this and this. As for me the first one is more preferable. You can extend standard component with this solution.
如果您不需要任何鼠标交互,请设置
mouseEnabled = false;
。Set
mouseEnabled = false;
if you do not require any mouse interaction.