Nuklear
Nuklear copied to clipboard
How to get real window content size?
Hi.
I want to make a widget with height related to window's height.
I know that there's nk_window_get_content_region_size which returns size.
Then i'm trying to nk_layout_row_dynamic(ctx, size.y, 1) and draw a widget.
But a scrollbar appears. If i substract 8 from size.y everything is ok. From where comes this 8?
Thanks.
Not tried myself to test, but I suppose there is something with padding, which can be overridden locally with style push/pop
nk_window_get_bounds too?