views:

536

answers:

1

Hi!!

I'm having some issues aligning the header text of a datagrid. I'm using an embed font for the header text, and when applying the css, the header text behaves as if I'd set the text vertical align to top. I'm trying to vertically center the text, but haven't found a way to make it work.

An image to give you a better idea: alt text

Any tip?

Regards, BS_C3

+1  A: 

Are you using a headerRenderer? A simple headerRenderer might look like:

<mx:HBox width="100%" height="100%" verticalAlign="middle">
  <mx:Label text="{data.name}"/>
</mx:HBox>

This will center the label vertically inside the box. You can position horizontally as well.

Robusto
Hi.Thanks for your answer. I thought about using a headerRenderer, but is there no other way to do it? Cause by default, the headers are correctly aligned... >_<
BS_C3