fitRowHeader method

void fitRowHeader(
  1. int row
)

Implementation

void fitRowHeader(int row) {
  final hcd = verticalHeaderCellData(row);
  var txt = verticalHeaderData(row);
  var size = _textSize(txt, hcd.textStyleDefault);
  hcd.height = size.height + 2;

  for (int j = 0; j < columnCount(); j++) {
    final index = Index(row, j);
    final cd = cellData(index);
    txt = data(index);
    size = _textSize(txt, cd.textStyleDefault);
    hcd.height = max(hcd.height, size.height + 2);
  }
}