当heightInLines =“1”时,Spark RichEditableText很奇怪

时间:2011-11-07 23:02:44

标签: flex flex4

试试这个:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">

    <s:Panel id="pnl">
        <s:RichEditableText id="richEdTxt"
            width="200"
            maxChars="100" />
    </s:Panel>

</s:Application>

现在设置heightInLines =“1”:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">

    <s:Panel id="pnl">
        <s:RichEditableText id="richEdTxt"
            width="200"
            maxChars="100"
            heightInLines="1" />
    </s:Panel>

</s:Application>

使用字符填充RichEditableText时看到问题?继续输入单词hello,直到你越过RichEditableText的第一个可见区域。事情变得奇怪。试试看。任何人都有任何想法如何防止这种怪异? (文字开始上下跳动)

all is well

crossed over

text jumps down

then back up and looks good

then down and bad again

1 个答案:

答案 0 :(得分:0)

这是一个似乎已在以后的SDK中修复的错误 - 但我似乎无法找到它的JIRA票证。