11 Replies Latest reply on Feb 5, 2008 1:28 PM by joan_lafferty

    Vertical alignment of text in DataGrid with custom header/row height

    Adam_Ratcliffe
      I have a DataGrid using custom values for headerHeight and rowHeight properties, in addition I'm reducing the font size for the header using a CSS class referenced by the headerStyleName property.

      Both the header/row height properties and the font sizing rules are being honoured but the text is no longer vertically aligned within the grid header or row, in fact it looks like a constant y offset is used for positioning the text within the grid cell.

      What would be the best approach to take to align the header/row text vertically within the grid cell?

      Cheers
      Adam