diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 78b90e35..2859f568 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -370,7 +370,7 @@ where InputMethod::Enabled { cursor: Rectangle::new( position, - Size::new(0.0, f32::from(line_height)), + Size::new(1.0, f32::from(line_height)), ), purpose: input_method::Purpose::Normal, preedit: state.preedit.as_ref().map(input_method::Preedit::as_ref), diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs index 97ae33d1..cbeefee5 100644 --- a/widget/src/text_input.rs +++ b/widget/src/text_input.rs @@ -430,7 +430,7 @@ where InputMethod::Enabled { cursor: Rectangle::new( Point::new(x, text_bounds.y), - Size::new(0.0, text_bounds.height), + Size::new(1.0, text_bounds.height), ), purpose: if self.is_secure { input_method::Purpose::Secure