Skip to content

[Data Grid] Data grid overflows in flex box #2618

@walterra

Description

@walterra

The data grid will overflow in flex structures:

image

Within EuiFlexItem, the data grid only adapts to the container width if the flex item has a hard coded width. If the width is not set or a percentage, data grid will outgrow it.

Expected behavior: The data grid should not outgrow the parent container.


See this codesandbox to reproduce the issue: https://codesandbox.io/s/euidatagrid-1-6yedq?fontsize=14&hidenavigation=1&theme=dark


In this Kibana PoC I worked around it by tracking the width of the parent element and setting it via JavaScript but it's unfortunate that that's needed.

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