Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'min_size' Style property not working #8169

Closed
vav-dev opened this issue Mar 22, 2023 · 2 comments
Closed

'min_size' Style property not working #8169

vav-dev opened this issue Mar 22, 2023 · 2 comments
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior

Comments

@vav-dev
Copy link

vav-dev commented Mar 22, 2023

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'

@vav-dev vav-dev added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Mar 22, 2023
@mockersf
Copy link
Member

this has probably been fixed by #7948

@mockersf mockersf added A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Mar 23, 2023
@nicoburns
Copy link
Contributor

This should be fixed in bevy 0.10.1 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

3 participants