Skip to content

[REGRESSION] TextEdit::min_size no longer honors min_size.y #8071

@AmmarAbouZor

Description

@AmmarAbouZor

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 missing min_size.y handling rather than the intended API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions