From 8f413fdb460902232b45908966f9c1b9d7641c3d Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Fri, 8 Sep 2023 10:11:51 +0200 Subject: [PATCH] fix auto-scrolling in debug UI (due to change in how oc_ui_panel() is structured) --- src/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime.c b/src/runtime.c index e0f87cd..2253e82 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -788,7 +788,7 @@ i32 orca_runloop(void* user) oc_ui_panel("log view", OC_UI_FLAG_SCROLL_WHEEL_Y) { - panel = oc_ui_box_top(); + panel = oc_ui_box_top()->parent; oc_ui_style_next(&(oc_ui_style){ .size.width = { OC_UI_SIZE_PARENT, 1 }, .size.height = { OC_UI_SIZE_CHILDREN },