Skip to content

Commit

Permalink
Merge branch 'master' into 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Apr 20, 2023
2 parents c6b4d97 + 2155d0a commit 18584a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_native"
version = "0.10.2"
version = "0.10.3"
authors = ["Héctor Ramón Jiménez <[email protected]>"]
edition = "2021"
description = "A renderer-agnostic library for native GUIs"
Expand Down
7 changes: 5 additions & 2 deletions native/src/widget/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,12 @@ pub fn draw<Renderer>(
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,
});
}

Expand Down

0 comments on commit 18584a9

Please sign in to comment.