diff --git a/native/Cargo.toml b/native/Cargo.toml index d0ec403d46..5ba06b67d0 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_native" -version = "0.10.2" +version = "0.10.3" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A renderer-agnostic library for native GUIs" diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 8627aa98aa..6113cf94c0 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -970,9 +970,12 @@ pub fn draw( size: icon.size.unwrap_or_else(|| renderer.default_size()), font: icon.font.clone(), color: appearance.icon_color, - bounds: icon_layout.bounds(), + bounds: Rectangle { + y: text_bounds.center_y(), + ..icon_layout.bounds() + }, horizontal_alignment: alignment::Horizontal::Left, - vertical_alignment: alignment::Vertical::Top, + vertical_alignment: alignment::Vertical::Center, }); }