1 Reply Latest reply on Jul 30, 2010 12:42 AM by morrpaul@gmail.com

    Removing the Vertical scroll bar for TextArea control

    mxvx Level 1

      <?xml version="1.0" encoding="utf-8"?>
      <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="388"  borderStyle="solid" borderThickness="5" creationComplete="fnInit()" height="100%">
                  private function fnInit():void {
                      txtAreaTest.text = " sd asd sad " +
                              "asdfasd" +
                              "sdafs" +
                              "fsd" +
                              "fasdf" +
                              "asdfasdf asd sad fasd fsa" +
                              "sd sd fsdf" +
                              "a sdf" +
                              "as d" +
                              "fas df" +
                              "a sdf" +
                              " sdf" +
                              " asdf asdf sdf" +
                              " asdf as"
                      //txtAreaTest.percentHeight = 100;   
          <mx:Label x="44" y="28" text="NEW COMP" width="298" height="54" fontSize="23" textAlign="center"/>
          <mx:TextArea id="txtAreaTest" x="25" width="190"  height="100%"/>


      For the above code, instead of increasing the height of the text area control it is showing me the vertical scroll bar for the text control. is thr any way to remove the vertical scroll bar when the text exceeds the default height