Skip to content

Add note warning to avoid using em CSS unit for dataGrid columns #1144

@syncro

Description

@syncro

Community members reported that using "em"s as column width unit can cause grid data rendering problems

Image

This problem is caused by the fact em gives different value in pixels for heading and body cells as they using different fonts.

rems are proposed to be used intstead as responsive(depending on screen size and font settings) unit alternative.

We can add the note in grid documentation reference for developers to avoid such problems

https://docs.jmix.io/jmix/flow-ui/vc/components/dataGrid.html#width

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