0 Replies Latest reply on Jan 24, 2011 7:50 AM by RandomReado

    Auto-resizing TextArea in Flex 4

    RandomReado Level 1

      Does anyone know how I can auto-resize the height of a Spark TextArea please? I tried following the examples in http://forums.adobe.com/thread/748191 but couldn't get it to work in either Flex 4.1 or Flex Hero.


      Here's what I'm doing:


      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
          <s:TextArea width="100%" heightInLines="{NaN}" minHeight="50"/>


      When I press enter I need the TextArea's height to auto-resize, rather than scrolling up/down. Any help appreciated.