2 Replies Latest reply on Oct 8, 2008 9:00 PM by Newsgroup_User

    List show empty space with variablerowheight

    jz618
      I have a List with ItemRenderer. I would like the list display item in variable row height base on the content of each row. I set variablerowheight = true. this is works.
      however, sometimes, I'm able to see some empty space on some rows,this make these row take more space and looks higher than others, if I drag scrollbar, the space disappear.
      has anyone see this problem? any sulotion or workaround?
      Thanks
        • 1. Re: List show empty space with variablerowheight
          jz618 Level 1
          I found the root cause of the problem:
          there is a text control with width=80%, change to a fixed width=500, problem not happen any more.
          so, seems Flex does not work with variableRowHeight=true to work with variable text width. in another word, width and height can not be both variable.
          any solution?
          • 2. Re: List show empty space with variablerowheight
            Level 7

            "jz618" <webforumsuser@macromedia.com> wrote in message
            news:gcjr2q$s5$1@forums.macromedia.com...
            >I found the root cause of the problem:
            > there is a text control with width=80%, change to a fixed width=500,
            > problem
            > not happen any more.
            > so, seems Flex does not work with variableRowHeight=true to work with
            > variable
            > text width. in another word, width and height can not be both variable.
            > any solution?

            I think you have to override measure() if you want to use percentage width
            on a text control.