Skip to content

Comments

The testbed_ui text scene should use a column layout #22976#23077

Open
kaio-matos wants to merge 3 commits intobevyengine:mainfrom
kaio-matos:testbed-ui-use-column-layout-for-text-example
Open

The testbed_ui text scene should use a column layout #22976#23077
kaio-matos wants to merge 3 commits intobevyengine:mainfrom
kaio-matos:testbed-ui-use-column-layout-for-text-example

Conversation

@kaio-matos
Copy link

@kaio-matos kaio-matos commented Feb 20, 2026

Objective

Remove unnecessary usage of absolute positioning for each text element
Fixes #22976

Solution

Uses display grid with two columns to display the testbed_ui text.
Beyond that I removed DespawnOnExit(super::Scene::Text) from each text element and added that only to the parent component.

Testing

Run and hit space once:

cargo run --example testbed_ui

@github-actions
Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@github-actions
Copy link
Contributor

Your PR caused a change in the graphical output of an example or rendering test. This might be intentional, but it could also mean that something broke!
You can review it at https://pixel-eagle.com/project/B04F67C0-C054-4A6F-92EC-F599FEC2FD1D?filter=PR-23077

If it's expected, please add the M-Deliberate-Rendering-Change label.

If this change seems unrelated to your PR, you can consider updating your PR to target the latest main branch, either by rebasing or merging main into it.

@alice-i-cecile alice-i-cecile added A-UI Graphical user interfaces, styles, layouts, and widgets S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it C-Testing A change that impacts how we test Bevy or how users test their apps M-Deliberate-Rendering-Change An intentional change to how tests and examples are rendered labels Feb 20, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in UI Feb 20, 2026
Copy link
Contributor

@ickshonpe ickshonpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep looks much better, don't see any problems.

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-Testing A change that impacts how we test Bevy or how users test their apps M-Deliberate-Rendering-Change An intentional change to how tests and examples are rendered S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

The testbed_ui text scene should use a column layout

3 participants