Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

How to get real window content size?

Open Temtaime opened this issue 4 years ago • 1 comments

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.

Temtaime avatar Feb 05 '21 17:02 Temtaime

Not tried myself to test, but I suppose there is something with padding, which can be overridden locally with style push/pop

riri avatar Oct 07 '22 17:10 riri

nk_window_get_bounds too?

RobLoach avatar Apr 04 '24 17:04 RobLoach