Skip to content

ReactDataGrid width not respecting container padding #657

@ZephD

Description

@ZephD

I have a bootstrap Grid -> Row -> Col, with my ReactDataGrid inside.

The ReactDataGrid is larger than the column width by the sum of the padding on the sides.

Calls to .updateMetrics() do not fix the issue.

Probably due to using box-sizing: border-box in the css.

Here you can see the grid overflowing it's container:
screenshot from 2017-02-14 15-59-07

Here is the container (bootstrap col). Notice the overflow is the sum of the side padding (green)
screenshot from 2017-02-14 15-58-51

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions