Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Datagrid with graphic cell background problem

LEGEND ,
Aug 28, 2013 Aug 28, 2013

I've got a datagrid and some of the entries belong to a specific "channel." Instead of putting text in the cells to indicate the channel I want to include a logo. I created a custom cell renderer, but I first have to wonder if there is an easier/better way.

In any event the graphic is showing up and it is working like I would expect, except...

For some reason the background of the cell with logo graphic in it is only half height. I have set the row height on the datagrid to 38. The cells in other columns are looking correct. Also if I trace out the height of "this" in the cell renderer class it tells me that it is 38. But clearly somewhere along the route that information isn't getting to the background.

Any ideas?

TOPICS
ActionScript
831
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 28, 2013 Aug 28, 2013

are you "re-drawing" your datagrid after adding the image?  in particular, if you're loading the image(s), are you using a complete listener to redraw the datagrid?

Translate
Community Expert ,
Aug 28, 2013 Aug 28, 2013

are you "re-drawing" your datagrid after adding the image?  in particular, if you're loading the image(s), are you using a complete listener to redraw the datagrid?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2013 Aug 28, 2013

Doh!

I forgot to add super.drawLayout() to my overridden method. Funny how I could miss something so simple.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2013 Aug 28, 2013
LATEST

We all do the same when you're too close to the code. It's a good excuse for a break .

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2013 Aug 28, 2013

Are you invalidating on any changes?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines