-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Setting Display::None
doesn't hide UI elements
#7952
Setting Display::None
doesn't hide UI elements
#7952
Comments
Bisected to 76058bc |
This one I can reproduce in Taffy. "leaf" display mode for nodes with no children is taking precedence over |
Ah. So this bug only triggers if the |
@Pascualex Fix submitted in the form of #7953. |
@nicoburns The minimal example still doesn't work for me after updating with |
@nicoburns that was quick! Thank you. |
Yeah, @kelden is right, the minimal example is still failing for me too. Even though as you pointed |
This needs to be reopened, as it's not completely fixed. |
@Pascualex @kelden Taffy |
@nicoburns yes, it works as expected now. Thanks again! |
Bevy version
0.10
What you did
I updated an old project where I toggle the display of certain UI elements.
What went wrong
Once they were set to
Display::Flex
for the first time, settingDisplay::None
didn't hide them.Additional information
I built a minimal repro. The node spawns with
Display::None
. Pressing space for the first time toggles the display, showing the node. Pressing space a second time toggles the display but doesn't hide the node. This example works as expected when ran with Bevy0.9
.The text was updated successfully, but these errors were encountered: