diff options
author | 2025-02-12 08:43:14 +0100 | |
---|---|---|
committer | 2025-02-12 08:43:14 +0100 | |
commit | 97f1db3783dca5a4f60a9f89668613de4dfe9edd (patch) | |
tree | eb552fbeaab6c18b7585ffde3c9f2629ebcca5ed /widget | |
parent | 7c1123d6c9c51b54cc25cd88f7922658a42230fb (diff) | |
download | iced-97f1db3783dca5a4f60a9f89668613de4dfe9edd.tar.gz iced-97f1db3783dca5a4f60a9f89668613de4dfe9edd.tar.bz2 iced-97f1db3783dca5a4f60a9f89668613de4dfe9edd.zip |
Fix unneeded re-shaping during layout on `text_input` edit
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/text_input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs index 37691e73..bb2685bd 100644 --- a/widget/src/text_input.rs +++ b/widget/src/text_input.rs @@ -1726,7 +1726,7 @@ fn replace_paragraph<Renderer>( bounds: Size::new(f32::INFINITY, text_bounds.height), size: text_size, horizontal_alignment: alignment::Horizontal::Left, - vertical_alignment: alignment::Vertical::Top, + vertical_alignment: alignment::Vertical::Center, shaping: text::Shaping::Advanced, wrapping: text::Wrapping::default(), }); |