Offset Preedit overlay by cursor height
This commit is contained in:
parent
71061b53bb
commit
d8f12d74f8
1 changed files with 3 additions and 3 deletions
|
|
@ -229,7 +229,7 @@ where
|
|||
self.preedit.take().unwrap_or_else(Preedit::new);
|
||||
|
||||
overlay.update(
|
||||
cursor.position(),
|
||||
cursor,
|
||||
&preedit,
|
||||
self.state.background_color(),
|
||||
&self.renderer,
|
||||
|
|
@ -357,12 +357,12 @@ where
|
|||
|
||||
fn update(
|
||||
&mut self,
|
||||
position: Point,
|
||||
cursor: Rectangle,
|
||||
preedit: &input_method::Preedit,
|
||||
background: Color,
|
||||
renderer: &Renderer,
|
||||
) {
|
||||
self.position = position;
|
||||
self.position = cursor.position() + Vector::new(0.0, cursor.height);
|
||||
|
||||
let background = Color {
|
||||
a: 1.0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue