From c84b2f9a960c67196d4548a03e0964b4bed623e6 Mon Sep 17 00:00:00 2001 From: vurtun Date: Mon, 1 Aug 2016 13:06:23 +0200 Subject: [PATCH] Fixed notebook tab group with same name I forgot to provide a new name to the notebook group so if you scroll the other group with the same name it will not work. --- demo/overview.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/demo/overview.c b/demo/overview.c index 4b2d53e..144b12d 100644 --- a/demo/overview.c +++ b/demo/overview.c @@ -874,7 +874,7 @@ overview(struct nk_context *ctx) /* Body */ nk_layout_row_dynamic(ctx, 140, 1); - if (nk_group_begin(ctx, &group, "Group", NK_WINDOW_BORDER)) + if (nk_group_begin(ctx, &group, "Notebook", NK_WINDOW_BORDER)) { ctx->style.window.spacing = item_padding; switch (current_tab) { @@ -891,7 +891,6 @@ overview(struct nk_context *ctx) } nk_chart_end(ctx); break; - case CHART_HISTO: nk_layout_row_dynamic(ctx, 100, 1); bounds = nk_widget_bounds(ctx); @@ -903,7 +902,6 @@ overview(struct nk_context *ctx) } nk_chart_end(ctx); break; - case CHART_MIXED: nk_layout_row_dynamic(ctx, 100, 1); bounds = nk_widget_bounds(ctx);