Skip to content

Resizer line mis-placed when using padding/margin/borders on the cells #149

Closed
@mike-lischke

Description

@mike-lischke

The position calculation for the resizer line seems not to include cell padding values or any other decoration like borders and is more and more offset the further right you start dragging.

To reproduce:

  • Create a table with enough columns, which are enabled to resize them.
  • Use this CSS rule to apply some padding:
.dataTable__header-cell,
.dataTable__row-cell {
    padding: 0px 5px;
}

Now try to resize a column. If you start left the resize line is close to the cursor (and column right border). The further right a column is, the larger is the distance between the right column border and the resize line.

A passable workaround is to set the padding on the row text class, though it's not perfect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions