Merge pull request #2790 from rhysd/adjust-preedit-size
Set correct text size for preedit window
This commit is contained in:
commit
7c1123d6c9
4 changed files with 16 additions and 6 deletions
|
|
@ -759,8 +759,11 @@ where
|
|||
shell.request_redraw();
|
||||
}
|
||||
Ime::Preedit { content, selection } => {
|
||||
state.preedit =
|
||||
Some(input_method::Preedit { content, selection });
|
||||
state.preedit = Some(input_method::Preedit {
|
||||
content,
|
||||
selection,
|
||||
text_size: self.text_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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue