From 76ebc40c266b5efa4f2f7bbbb7d1e57ccb52860b Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Wed, 28 Dec 2016 22:39:04 -0800 Subject: [PATCH] Set window bounds in nk_begin when the window isn't user-resizable --- nuklear.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nuklear.h b/nuklear.h index 6903992a..31448562 100644 --- a/nuklear.h +++ b/nuklear.h @@ -17247,6 +17247,8 @@ nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, /* update window */ win->flags &= ~(nk_flags)(NK_WINDOW_PRIVATE-1); win->flags |= flags; + if (!(win->flags & (NK_WINDOW_MOVABLE | NK_WINDOW_SCALABLE))) + win->bounds = bounds; /* If this assert triggers you either: * * I.) Have more than one window with the same name or