On 5/1/07, ria_coder <[EMAIL PROTECTED]> wrote:

> We have a resizable canvas with a list on it that is populated from a
> SOAP service (asynchronous call so data is added to list after list is
> displayed). The list is set to 100% width so that it fills the canvas.
> If an entry in the list has a length that is greater than the width of
> the canvas then we would like a horizontal scrollbar to appear.
> We've tried any number of things but it just doesn't work.

This works:

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
  xmlns="*">
  <mx:Canvas width="100">
    <mx:List width="100%" horizontalScrollPolicy="on">
      <mx:dataProvider>
        <mx:Array>
          <mx:String>This is a really long piece of text.</mx:String>
          <mx:String>This is short.</mx:String>
        </mx:Array>
      </mx:dataProvider>
    </mx:List>
  </mx:Canvas>
</mx:Application>

I'm setting the horizontalScrollPolicy to "on". Can you make it *not*
work (to reproduce your exact case)?

Reply via email to