I've got a custom component with a spark text input in it (s:TextInput) I have it styled via css and one of the properties is:
contentBackgroundColor (This is a spark specific style according to the docs)
I'm trying to use this component inside an advanced data grid (mx:AdvancedDataGrid) via an advanced data grid item renderer (s:MXAdvancedDataGridItemRenderer).
The issue is that all the properties of the style I'm using are working fine except for contentBackgroundColor. Everything works fine no matter where I use this component except for when I use it in this renderer. I've tried adding the normal backgroundColor style that is used in the mx version but that doesn't seem to work either.
Any ideas on why this is happening and what I can do to fix it? Thanks.
Bump. Any ideas on this. I still haven't been able to get it to work.
What does the renderer code look like?
Ok I was getting ready to post the renderer code and then found the problem. I had copied this code from another renderer which had contentBackgroundAlpha=0 in the MXAdvancedDataGridItemRenderer tag. When I removed it, the style of the TextArea worked as intended. Your comment helped me to take a closer look at the renderer code, so thank you.