Skip to content

Wrong sense area for a TextEdit using vertical_align #7433

@RndUsr123

Description

@RndUsr123

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

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