[ui] Make windows fit to children

I'm not sure this is what I want, especially in the long run, but it
does make simple windows much easier to create (and not look broken due
to being specified too small).
This commit is contained in:
Bill Currie 2023-07-10 22:12:45 +09:00
parent 48cc4db45d
commit c18e432e0f

View file

@ -1056,8 +1056,8 @@ IMUI_StartWindow (imui_ctx_t *ctx, imui_window_t *window)
*View_Control (window_view) = (viewcont_t) {
.gravity = grav_northwest,
.visible = 1,
.semantic_x = imui_size_none,
.semantic_y = imui_size_none,
.semantic_x = imui_size_fitchildren,
.semantic_y = imui_size_fitchildren,
.free_x = 1,
.free_y = 1,
.vertical = true,