(Please Disregard typo in previous posting)

In working with the AS3 DataGrid and assigning a TextFormat object to the
headerTextFormat everything works but the align property. I have assigned a
TextFormatAlign.RIGHT and TextFormatAlign.CENTER constant to the TextFormat
object align property in succession with no luck. Assigning TextFormat
objects to cellrenderers for the datagrid works perfectly fine and the align
property of the TextFormat object works perfectly there, just not when
assigning to the headerTextFormat. I first build my TextFormat object and
set properties as desired including the align property.

 

Ie.  

 

var myText:TextFormat = new TextFormat();

                        myText.size = 18;

                        myText.font = "Arial Black";

                        myText.align=TextFormatAlign.RIGHT;

                        myText.color=0x000000;

                        

myGrid.setStyle("headerTextFormat",myText);

 

 

This appears to be a bug which is consistent for AS3 in both CS3 and CS4. I
also noticed in all of the examples provided by Adobe they never do anything
with alignment on the header text because if they did they would have found
this issue immediately. Unless I've missed something obvious, has anyone
been able to get the DataGrid headerText to align other than left?

 

Craig Bowman

 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to