Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

NK_WINDOW_SCROLL_AUTO_HIDE doesn't work for groups?

Open rswinkle opened this issue 8 months ago • 0 comments

Just ran into this. Confirmed it by adding the flag to a group in the overview demo. The window scrollbar disappears but the group scrollbar does not. I don't see how I could be doing anything wrong.

The original commit is here just for reference. While it doesn't explicitly mention groups in the commit message, I don't see any documentation or comment anywhere that says it's not supported and the documentation comments do say "Groups are basically windows inside windows".

I took a cursory glance at it in the debugger when it wasn't working and while the relevant code is hit it seems like group data isn't stored the same way as window data because my watch point was just overwritten by garbage randomly. Eventually I'll take the time to really understand how Nuklear handles its data but if anyone knows what's going on chime in please.

In the meantime, while it would be very nice if groups were supported, for now we should at least document clearly which window flags are not supported for groups in the larger comment blocks.

rswinkle avatar May 06 '25 06:05 rswinkle