-
Notifications
You must be signed in to change notification settings - Fork 2k
[REGRESSION] TextEdit::min_size no longer honors min_size.y #8071
Copy link
Copy link
Open
Labels
bugSomething is brokenSomething is broken
Description
Describe the bug
After upgrading from egui 0.33 to 0.34, TextEdit::singleline(...).min_size(vec2(_, height)) no longer respects the requested minimum height.
The same code worked in 0.33. In 0.34, width still behaves as expected, but the height falls back to the widget's internal single-line height.
Expected behavior
The TextEdit should honor min_size.y, the same way it did in egui 0.33, so the widget can match the row height.
Desktop (please complete the following information):
- OS: Linux Ubuntu 24.04 LTS on Wayland
- Version 0.34.1
Workarounds
ui.add_sized(...)can force the outer slot size, but it does not fully replace the old behavior because the inner text layout still uses the widget's natural height.- Adjusting
TextEdit::margin(...)can partially work around this, but it feels like a workaround for missingmin_size.yhandling rather than the intended API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething is brokenSomething is broken