diff options
author | 2025-02-06 01:50:25 +0900 | |
---|---|---|
committer | 2025-02-06 02:01:52 +0900 | |
commit | fcdf53afdee9cd12bf2e01c5f6e572859b9a3f96 (patch) | |
tree | 0f28b34b42e88db0dc379e3c3b8b6deb88192df2 /winit | |
parent | 4bbb5cbc1f8b2a0ee8e09be18071368df3ba5bbd (diff) | |
download | iced-fcdf53afdee9cd12bf2e01c5f6e572859b9a3f96.tar.gz iced-fcdf53afdee9cd12bf2e01c5f6e572859b9a3f96.tar.bz2 iced-fcdf53afdee9cd12bf2e01c5f6e572859b9a3f96.zip |
Set correct text size for text in preedit window
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/program/window_manager.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs index ae214e7c..d5b334df 100644 --- a/winit/src/program/window_manager.rs +++ b/winit/src/program/window_manager.rs @@ -322,7 +322,9 @@ where self.content = Renderer::Paragraph::with_spans(Text { content: &spans, bounds: Size::INFINITY, - size: renderer.default_size(), + size: preedit + .text_size + .unwrap_or_else(|| renderer.default_size()), line_height: text::LineHeight::default(), font: renderer.default_font(), horizontal_alignment: alignment::Horizontal::Left, |