1 Reply Latest reply on Oct 19, 2007 9:01 AM by ntsiii

    Vertical Scrollbar in Textarea

    baggio16 Level 1
      I have a datagrid that is populating a textarea on load.

      The problem is that I am unable to scroll vertically unless I select a different item. Is there a trick to getting this to work?

      <mx:DataGrid id="dgPressReleases" dataProvider="{feedRequest.lastResult.rss.channel.item}"
      height="135"
      left="10"
      right="10"
      width="606"
      enabled="true"
      selectedIndex="{feedRequest.lastResult.rss.channel.item}" borderColor="#d6d9db">
      <mx:columns>
      <mx:DataGridColumn headerText="Date" dataField="Date" width="125"/>
      <mx:DataGridColumn headerText="Headline" dataField="title"/>
      </mx:columns>
      </mx:DataGrid>

      <mx:TextArea fontFamily="Verdana" condenseWhite="true" height="328" y="153" left="10" right="10" editable="false" fontSize="12" width="606" enabled="true" borderColor="#d6d9db" verticalScrollPolicy="on">
      <mx:htmlText>
      {dgPressReleases.selectedItem.headline}{dgPressReleases.selectedItem.release}
      </mx:htmlText>
      </mx:TextArea>

      Thanks in advance.