Column headers not flush when right aligned
Hi,
I've noticed that when I right align columns and headers, althoght the data in the column is flush against the right side of the cell, the text in the header is not. Instead there appears to be a small amount of padding. Does anyone know of a way to remove this??
Thanks, Helen.
PS The example below demonstrates this problem. Look at the alignment of the second column - "Value" is not flush against the right hand side of cell
I've noticed that when I right align columns and headers, althoght the data in the column is flush against the right side of the cell, the text in the header is not. Instead there appears to be a small amount of padding. Does anyone know of a way to remove this??
Thanks, Helen.
PS The example below demonstrates this problem. Look at the alignment of the second column - "Value" is not flush against the right hand side of cell
var data = [
["aaa", "111", "02/21/2005", "A"],
["bbb", "22", "01/01/2004", "A"],
["bbb", "22", "11/10/2002", "B"] ,
["bbb", "22", "01/31/2003", "A"],
["bbb", "22", "01/31/2004", "B"]
];
var headers = ["Code used to distinguish data", "Value", "Due By", "Type"];
var string = new AW.Formats.String;
var number = new AW.Formats.Number;
var date = new AW.Formats.Date;
var obj = new AW.UI.Grid;
obj.setCellText(data);
obj.setCellEditable(true);
obj.setHeaderText(headers);
obj.getHeaderTemplate(1).setStyle("text-align", "right");
obj.getCellTemplate(1).setStyle("text-align", "right");
obj.setCellFormat([string, number, date, string]);
obj.setColumnCount(data[0].length);
obj.setRowCount(data.length);
obj.setSize(400,200)
document.write(obj);
Helen Williamson
March 2,