I've got a fairly simple custom itemRenderer inside a TileList that's giving
me problems. The renderer is simply an HBox with an Image and a few Label
controls. The problem is the renderers all show up squished at the top of
the list, piled on top of each other. I've overridden updateDisplayList()
and can see that unscaledWidth is being set properly, but unscaledHeight is
always NaN. I've set the width and height explicity in the renderer, as well
as set columnWidth and rowHeight in the TileList. I've also set maxColumns,
since I need it to be limited to 2 columns (side question: does columnCount
do anything in a TileList?) I've tried converting the renderer to a Canvas,
overriding measure(), tried every combination of
width/height/columnWidth/rowHeight settings, but nothing seems to work. The
highlights show up in the TileList where they should be, but none of the
renderers display properly.
I think the problem has to be in the TileList, as I've tried using the built
in renderer, and that also screws up. Has anybody ever seen anything like
this before? I've used TileLists in the past, and never had this problem.
I'm using AIR 1.5, and the TileList is rendering itself properly (if I set a
background color, I can see it occupies the proper space.)

- Ken

Reply via email to