Komari Spaghetti

Results 98 comments of Komari Spaghetti

I'm gonna chip in here. After reading @rivten [link from the intel folk](https://software.intel.com/en-us/blogs/2015/04/20/null-pointer-dereferencing-causes-undefined-behavior) it really seems like the C standard would define this as undefined behavior. It is therefor correct...

Another thing that would be nice with this change would be if all sizes where of type `size_t`. This also makes interfacing certain safer languages simpler (I can avoid an...

Hmm. So there is really no way to remove the inner padding of group 2 to get the desired effect then. I guess I'll play around with `nk_layout_space_xxx` then.

Playing with it a little more, I actually managed to get the desired result: ```c nk_layout_row_dynamic(ctx, 50, 2); if (nk_group_begin(ctx, "1", NK_WINDOW_BORDER | NK_WINDOW_NO_SCROLLBAR)) { nk_group_end(ctx); } struct nk_style_window old...

I'll try playing a little more. I can probably restore the padding again.

Hmm. Restoring the padding inside 3 and 4 doesn't work as I thought it would. ```c nk_layout_row_dynamic(ctx, 100, 2); if (nk_group_begin(ctx, "1", NK_WINDOW_BORDER | NK_WINDOW_NO_SCROLLBAR)) { nk_layout_row_dynamic(ctx, 0, 1); nk_label(ctx,...

Ooh. A simpler, near perfect solution ```c nk_layout_row_dynamic(ctx, 50, 2); if (nk_group_begin(ctx, "1", NK_WINDOW_BORDER | NK_WINDOW_NO_SCROLLBAR)) { nk_group_end(ctx); } struct nk_style_window old = ctx->style.window; ctx->style.window.group_padding = nk_vec2(0, 0); int is_showing...

Looking even more into this I've found some behavior that I find unexpected. With the default padding `(4,4)` we get this ![image](https://user-images.githubusercontent.com/3759175/65318498-fc415800-db9d-11e9-969f-c990838122d6.png) I would expect that the top padding and...

To test these things, i use the `x11_xtf` demo. ```c printf("-------\n"); printf("%f %f\n", ctx->style.window.group_padding.x, ctx->style.window.group_padding.y); printf("%f %f\n", ctx->style.window.padding.x, ctx->style.window.padding.y); /* GUI */ if (nk_begin(ctx, "Demo", nk_rect(50, 50, 200, 200), NK_WINDOW_BORDER...

@eax0r If the problems pointed out [in my last comment](https://github.com/vurtun/nuklear/issues/906#issuecomment-533683858) are fixed, then I don't need any new layouts to be implemented, as I can use what is currently in...