changeset 2650:9263d064294c

Fix binding buttons getting cutoff
author Michael Pavone <pavone@retrodev.com>
date Sat, 01 Mar 2025 23:46:22 -0800
parents 6fdd845907c8
children 1072cc337822
files nuklear_ui/blastem_nuklear.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Sat Mar 01 17:28:29 2025 -0800
+++ b/nuklear_ui/blastem_nuklear.c	Sat Mar 01 23:46:22 2025 -0800
@@ -961,7 +961,7 @@
 	nk_layout_space_push(context, nk_rect(x, y, width, (num_binds - skipped) * (row_height + 4) + 4));
 	nk_group_begin(context, name, NK_WINDOW_BORDER | NK_WINDOW_NO_SCROLLBAR);
 
-	float widths[] = {max_width + 3, width - (max_width + 6)};
+	float widths[] = {max_width + 3, width - (max_width + 22)};
 	nk_layout_row(context, NK_STATIC, row_height, 2, widths);
 	for (int i = 0; i < num_binds; i++)
 	{