fix: add padding to home menu length

This commit is contained in:
CJ van den Berg 2025-08-13 14:02:52 +02:00
parent bcfd17a0e2
commit b46e6edbca
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -123,6 +123,8 @@ pub fn create(allocator: std.mem.Allocator, parent: Widget) !Widget {
self.max_desc_len = @max(self.max_desc_len, description.len + hint.len + 5);
try self.add_menu_command(command_name, description, hint, self.menu);
}
const padding = Widget.Style.from_type(widget_style_type).padding;
self.menu_len += padding.top + padding.bottom;
self.position_menu(15, 9);
return w;
}