SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

`multiple_text_input` example layout fixes (#24294)

# Objective

These are meant to be single line inputs, but:

<img width="1552" height="954" alt="image"
src="https://github.com/user-attachments/assets/5e7ab2c7-9bb2-46cd-9a42-bca36b933837"
/>

A mess!

## Solution

1. Add `TextLayout::no_wrap()` to each input and their outputs.
2. Add an intermediate node wrapping each output node applying clipping
to hide the overflow.

<img width="1608" height="489" alt="fixed-inputs"
src="https://github.com/user-attachments/assets/22dc436c-e677-4b1f-a569-d3a9c9effc1c"
/>

## Testing

```
cargo run --example multiple_text_inputs  --features="system_clipboard"
```
I
ickshonpe committed
a382a230a2025f9a16783511e2f268fd8881943e
Parent: 7500b6c
Committed by GitHub <noreply@github.com> on 5/21/2026, 10:16:40 AM