Flex Tidbits

July 25, 2008
Tags: , ,

Just thought that I’d post some tidbits of knowledge that I’ve learned today:

  • To properly display multi-line ItemRenderers using one of Flex’s list-based controls, you need to set the list control’s "variableRowHeight" property setting to true.
  • If your ItemRenderer’s size changes dynamically based on the supplied content (ex: long blocks of text), you’ll need to override the default measure() function in order to set the ItemRenderer’s "measuredHeight" property.
    • I haven’t figured out a nice way to determine the control’s exact height, so right now I just hard-coded a value
  • To cancel an event from propagating, call the event’s "stopPropagation" function.

Sorry for the terse format, but it’s Friday and I’m burnt out sitting here at work.

–Adam

Leave a Reply