1 Reply Latest reply on Jun 3, 2010 7:24 PM by David_F57

    Adding only a horizontal scrollbar to a Spark List

    jsd99 Level 3

      I have a Spark list which may be wider than the application container.  I want to have a horizontal scrollbar if and only if the content is wider than the screen.

       

      <s:List id="timeline" itemRenderer="com.thismoment.TimeLineRenderer"
                  contentBackgroundAlpha="0" borderVisible="false">
              <s:layout>
                  <s:HorizontalLayout clipAndEnableScrolling="true" />
              </s:layout>
          </s:List>

       

      With this code, I get a vertical scrollbar as well.  I only want horizontal.