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

    List scrolling/sizing issue

    BobTheCoolGuy

      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"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      autoDrawBackground="true">
          <mx:Text width="90%" htmlText="{data.descriptionHtml}"  />

      </s:ItemRenderer>

       

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