nuklear_console.h:651 carries a TODO: Fix the scroll on the new window, since it may not be centered on the active widget. This is the same family of bug being reported externally in #170 ("Trying to force scroll of a page, but I'm having trouble") — user calls nk_console_set_active_parent + nk_console_set_active_widget but scroll never lands on the target.
Suggested Implementation
In nk_console_set_active_parent, after nk_window_set_scroll(top->ctx, 0, 0), also set data->scroll_to_widget = data->active_widget so the next render pass scrolls to the focused widget instead of pinning to the top.
QA
nuklear_console.h:651carries aTODO: Fix the scroll on the new window, since it may not be centered on the active widget.This is the same family of bug being reported externally in #170 ("Trying to force scroll of a page, but I'm having trouble") — user callsnk_console_set_active_parent+nk_console_set_active_widgetbut scroll never lands on the target.Suggested Implementation
In
nk_console_set_active_parent, afternk_window_set_scroll(top->ctx, 0, 0), also setdata->scroll_to_widget = data->active_widgetso the next render pass scrolls to the focused widget instead of pinning to the top.QA