Skip to content

column width calculation ignores 1 wide spanning cells. #234

@mighdoll

Description

@mighdoll

The automatically calculated maximum width for a column skips looks like it skips spanning cells altogether. But it seems handy to use 1 wide spanning cells to adjust alignment. I'm using 1 wide spanning cells to center some column headings.

What do you think about including 1 wide spanning cells in the width calculation?

      if (isSpanningCell(rowIndex, cellIndex)) {
        return;
      }
      columnWidths[cellIndex] = Math.max(columnWidths[cellIndex], calculateMaximumCellWidth(cell));

(src line)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions