`TextEdit` shows no content when inside of a `StripBuilder` that doesn't have enough width
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 72
Description
**Describe the bug**
`TextEdit` gets displayed, but with no content, nor position bar, when inside of a `StripBuilder` that doesn't have enough width.
**To Reproduce**
Steps to reproduce the behavior:
1. Clone my forked egui repo: [egui](https://github.com/IVAN-MK7/egui/tree/issue-textedit-no-content-if-not-enough-width) and switch to the `issue-textedit-no-content-if-not-enough-width` branch
2. `cargo run -p egui_demo_app'
3. Open the "Grid Test" window on the bottom right corner of the `Demos` tab
4. Select and try to edit the 2nd `TextEdit` widget: it won't show any content, nor the blinking position bar
5. From the `crates\egui_demo_lib\src\demo\tests\grid_test.rs` switch from the `problematic_width` to the `working_width` and retry the test again: both its content and the position bar will be shown
**Expected behavior**
The `TextEdit` should not appear in full, or clearly display a warning to the user regarding it's inability to display content.
**Screenshots**
With `problematic_width`:
With `working_width`:
**Desktop (please complete the following information):**
- OS: Windows 10 22H2
Contributor guide
Research direction
Start by running `cargo run -p egui_demo_app` and reproduce the issue in the Grid Test window. Read `crates/egui_demo_lib/src/demo/tests/grid_test.rs`, comparing `problematic_width` with `working_width`, then trace the `TextEdit` and `StripBuilder` layout behavior involved. Done means the constrained widget either remains visibly usable or clearly warns that its content cannot be displayed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100