emilk/egui

Wrong sense area for a TextEdit using `vertical_align`

Closed this issue · 0 comments

Describe the bug
The input sensing part of TextEdit (both singleline and multiline variants) remains at the top of the widget regardless of vertical alignment. The text itself is correctly positioned.

To Reproduce

ui.add_sized
(
    vec2(100.0,100.0), 
    TextEdit::multiline(&mut String::from("Select me!"))
        .horizontal_align(Align::Center)
        .vertical_align(Align::Max)
        .background_color(Color32::WHITE)
        .text_color(Color32::BLACK)
);

Expected behavior
TextEdit reacts to events happening where the text is displayed rather than somewhere else.

Desktop (please complete the following information):

  • OS: Win10
  • Version 0.32.0