diff --git a/sugarloaf/src/components/rich_text/compositor.rs b/sugarloaf/src/components/rich_text/compositor.rs index 0964e08459..40a016b228 100644 --- a/sugarloaf/src/components/rich_text/compositor.rs +++ b/sugarloaf/src/components/rich_text/compositor.rs @@ -242,7 +242,12 @@ impl Compositor { } Some(SugarCursor::Caret(cursor_color)) => { self.batches.add_rect( - &Rect::new(rect.x, style.topline, 3.0, style.line_height_without_mod), + &Rect::new( + rect.x, + style.topline + style.padding_y, + 3.0, + style.line_height_without_mod, + ), depth, &cursor_color, );