Skip to content

Horizontal Scroll Doesn't Scroll Header Row #296

Open
@semireg

Description

@semireg
  • bug: H scroll doesn't scroll the top row. Is this normal? I've tried every layout and it still does this.

Environment Details

  • react-tabulator version: 0.21.0
  • OS: macOS

h-scroll

                <ReactTabulator
                  className="compact celled"
                  columns={currentColumns}
                  data={data}
                  options={{
                    layout: 'fitDataTable',
                    virtualDomHoz: true,
                    height: tableHeight,
                    movableColumns: isTable,

currentColumns is one row column, and then the data headers.

    const rowNumColumn = {
      title: 'Row',
      field: 'row',
      width: 75,
      hozAlign: 'center',
      headerSort: false,
      frozen: false
    } as const;
    const dataColumns = importRecord
      .get('header')
      .map((h) => ({ title: h, field: h, editor, headerMenu, headerSort: false }))
      .toArray();
    return [rowNumColumn, ...dataColumns];

Really trying to figure out what I'm doing wrong...

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