Scroll automatically to the bottom of spark TextArea
来源:互联网 发布:淘宝指数关键词 编辑:程序博客网 时间:2024/06/13 04:46
转载:http://www.smithfox.com/?e=172
[备忘] Scroll automatically to the bottom of spark TextArea
Use appendText function, spark TextArea will automatically scroll to bottom.
If you use TextArea.textFlow.addChild(xx), you should add some code:
1. write a function:
private function textAreaScrollToBottom(event:Event):void {
trace("textAreaScrollToBottom");
textArea.scroller.verticalScrollBar.value = textArea.scroller.verticalScrollBar.maxHeight;
//textArea.scroller.verticalScrollBar.validateNow();
}
2. listen TextArea.updateComplete event, and invoke textAreaScrollToBottom()
3. listen TextArean.textFlow.updateComplete event, and invoke textAreaScrollToBottom()
Yes, you must listen both TextArea.updateComplete and TextArean.textFlow.updateComplete!!
- Scroll automatically to the bottom of spark TextArea
- Use jQuery to scroll to the bottom of a div with lots of text
- Scroll to the end of RichTextbox
- How to remove the bottom gap of UIPageViewController
- How to execute the script automatically without the authority of /etc
- The design and implementation of a system to detect and filter large sessions automatically
- How to popup a UIPickerView from the bottom of a UIScrollView in response to UITextField selection
- How to align content of a div to the bottom with css?
- How to Control the [Add document] button on the bottom of every view?
- Animate to display a dialog message box in the right-bottom of the window screen
- How to: Launch the Debugger Automatically
- PKU2553 the bottom of the graph
- The color chooser class, you could slide the scroll bars to get the specific numbers of the color
- POJ 2553 The Bottom of A Graph
- poj 2553 The Bottom of a Graph
- poj2553 The Bottom of a Graph
- poj 2553 The Bottom of a Graph
- poj 2553 The Bottom of a Graph
- SQLite在micro上的移植
- c语言版数据结构(奇迹冬瓜)-数组和广义表(稀疏矩阵的乘法)
- 查找mysql数据库中所有包含特定名字的字段所在的表
- Socket小Demo
- 编写PHP扩展
- Scroll automatically to the bottom of spark TextArea
- 基于Office Visio 2010 图表绘制
- android 用eclipse调试framework java层或者应用层代码
- Tab的子activity绑定服务报空指针错误
- linux下使用find xargs grep查找文件及文件内容
- 【bloom filter】对HBase中Bloomfilter类型的设置及使用的理解
- SAP几则常用的BASIS技巧整理
- vim 关闭折叠
- hdu4302