Эх сурвалжийг харах

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.
vurtun 9 жил өмнө
parent
commit
c84b2f9a96
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      demo/overview.c

+ 1 - 3
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);