简单一句话额
protected function txtField_changeHandler(event:Event):void
{
txtField.height = txtField.scroller.viewport.contentHeight + 2;
}
TextField高度自适应调整
本文介绍了一种在Flex中使TextField高度根据内容自动调整的方法。通过监听TextField的内容变化事件,实时更新其高度以匹配实际内容的高度。
简单一句话额
protected function txtField_changeHandler(event:Event):void
{
txtField.height = txtField.scroller.viewport.contentHeight + 2;
}
2万+

被折叠的 条评论
为什么被折叠?