3 Replies Latest reply on Jul 29, 2011 1:54 PM by Flex harUI

    List scrolling/sizing issue

    BobTheCoolGuy Level 1

      I've been having a lot of trouble with a list component, so I'll describe it here.


      Basically, I'm trying to make a list that displays HTMLText.  The list is part of a NavigatorContent with a vertical layout, and it could get resized vertically or horizontally at any time.  I'm having a ton of problems - sometimes the scrollbars only scroll to reveal some of the content, and resizing causes all sorts of problems.  Here's my implementation currently:



      <!--Inside a NavigatorContent with a vertical layout-->

           <s:List id="dirList" width="100%" height="{container.height-dirList.y}" change="dirListChange(event)" itemRollOver="rollOver(event)"  itemRenderer="DirectionsListRenderer" alternatingItemColors="[0xffffff,0xf9f6ff]"/>



      My item renderer is simple enough:


      <?xml version="1.0" encoding="utf-8"?>
      <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
          <mx:Text width="90%" htmlText="{data.descriptionHtml}"  />



      I've tried playing with various properties to no avail.  Any help would be appreciated.