3 Replies Latest reply on Nov 14, 2011 1:48 AM by bchalupka

    text area to auto expand in spark renderer

    nikos101 Level 2

      How can I get my text area to auto expand in height?

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"

                      xmlns:s="library://ns.adobe.com/flex/spark"

                      xmlns:mx="library://ns.adobe.com/flex/mx"

                      autoDrawBackground="true">

          <fx:Script>

              <![CDATA[

                  import utils.Formatters;

              ]]>

          </fx:Script>

         

         

          <s:HGroup width="100%" verticalAlign="middle" paddingRight="10" paddingLeft="10" paddingBottom="5" paddingTop="5">

              <s:TextArea text="{data.comment}" height="40" borderVisible="false" width="100%" editable="false">

                 

              </s:TextArea>

              <s:VGroup>

                  <s:Label text="{data.samAccountName}" scaleX="1.4" scaleY="1.4"/>

                  <s:Label text="{Formatters.formatDateWithTime(data.dateCreated)}"

                          

                          

                           width="100%"

                           maxDisplayedLines="1"

                           showTruncationTip="true" />

                 

                 

              </s:VGroup>

          </s:HGroup>

         

      </s:ItemRenderer>