在Flex 4的标签自动换行 [英] Label word wrap in Flex 4
本文介绍了在Flex 4的标签自动换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在一个Label控件(或类似的控制)的文字被包裹在Flex 4的测试版?在Flex 3,我可以用文本控制,但这次不再提供Flex 4中。
How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4.
推荐答案
您可以使用 maxDisplayedLines
和断行
属性火花标签
部分:
You can use maxDisplayedLines
and lineBreak
properties with spark Label
component:
<s:Label maxDisplayedLines="{-1}" lineBreak="toFit" text="...." />
它与Flex 4.5中。
It works with Flex 4.5.
这篇关于在Flex 4的标签自动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文