From 8e812b8103bcc3490e411bbbfa7874728c83c08e Mon Sep 17 00:00:00 2001 From: Justus Klausecker Date: Tue, 14 Oct 2025 00:10:31 +0200 Subject: [PATCH] vxfw.ScrollView: fix cursored line not displaying --- src/vxfw/ScrollView.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vxfw/ScrollView.zig b/src/vxfw/ScrollView.zig index 36319a44..41563b41 100644 --- a/src/vxfw/ScrollView.zig +++ b/src/vxfw/ScrollView.zig @@ -464,7 +464,7 @@ fn drawBuilder(self: *ScrollView, ctx: vxfw.DrawContext, builder: Builder) Alloc const cursor_surf = try vxfw.Surface.initWithChildren( ctx.arena, self.widget(), - .{ .width = child_offset, .height = child.surface.size.height }, + .{ .width = child_offset + child.surface.size.width, .height = child.surface.size.height }, sub, ); for (0..cursor_surf.size.height) |row| {