Skip to content

'min_size' Style property not working #8169

Closed
@vav-dev

Description

@vav-dev

Bevy version

bevy 0.10.0

What you did

I upgrade my bevy project from 0.9 to 0.10

What went wrong

The 'min_size' Style property of the NodeBundle does not seem to be taken into account:

NodeBundle {
    style: Style {
        min_size: Size {
            height: Val::Px(100.),
            width: Val::Px(250.),
        },
        ..default()
    },
    ..default()
}

Give this result:

image

Instead of this:

image

This can be fixed replacing 'min_size' by 'size' but it loses all the 'responsivness'

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions