Set correct text size for text in preedit window

This commit is contained in:
rhysd 2025-02-06 01:50:25 +09:00
parent 4bbb5cbc1f
commit fcdf53afde
4 changed files with 25 additions and 11 deletions

View file

@ -1262,7 +1262,7 @@ where
state.is_ime_open =
matches!(event, input_method::Event::Opened)
.then(input_method::Preedit::new);
.then(|| input_method::Preedit::new(self.size));
shell.request_redraw();
}
@ -1273,6 +1273,7 @@ where
state.is_ime_open = Some(input_method::Preedit {
content: content.to_owned(),
selection: selection.clone(),
text_size: self.size,
});
shell.request_redraw();