0

我很难弄清楚这个...

如何在触控设备上滚动可编辑的 TextArea (Flex Hero)?我指的是文本不适合 TextArea 高度的情况。当我尝试点击并拖动文本时,文本被选中而不是滚动......我在这里错过了什么吗?我正在使用verticalScrollPolicy = on(也尝试过自动)。

我正在 Blackberry Playbook 模拟器(我的应用程序的目标设备)中测试代码。

如果您有任何提示或建议,请告诉我。

谢谢,

4

3 回答 3

0

TextArea 是一个可编辑的组件。如果您不想编辑文本,则应尝试使用 RichText。

于 2011-03-21T20:13:26.597 回答
0

RichEditableText is not optimized for mobile

Use this instead Orig source

import spark.components.supportClasses.MobileTextField;
private var cnt:int = 0;

protected function addText():void
{
            ta.appendText('More text... ' + cnt++ + '\n');
            MobileTextField(ta.textDisplay).scrollV++;
}

<s:TextArea id="ta" width="95%" height="200" editable="false"/>
于 2013-07-17T10:14:23.337 回答
0

将其放入:Scroller:

<s:Scroller id="prayerSc" width="100%" height="100%">
<s:RichEditableText id="prayerText" width="100%" height="100%" clipAndEnableScrolling="true" selectable="true" editable="true" textFlow="{PTFL}" />
</s:Scroller>
于 2011-05-14T22:15:41.297 回答