diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libui_sdl/libui/unix/area.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/unix/area.c b/src/libui_sdl/libui/unix/area.c index bde907a..c28f2c3 100644 --- a/src/libui_sdl/libui/unix/area.c +++ b/src/libui_sdl/libui/unix/area.c @@ -95,6 +95,8 @@ static void areaWidget_size_allocate(GtkWidget *w, GtkAllocation *allocation) if (!a->scrolling) // we must redraw everything on resize because Windows requires it gtk_widget_queue_resize(w); + + a->ah->Resize(a->ah, a, allocation->width, allocation->height); } static void loadAreaSize(uiArea *a, double *width, double *height) @@ -153,6 +155,8 @@ static void areaWidget_get_preferred_height(GtkWidget *w, gint *min, gint *nat) *min = a->scrollHeight; *nat = a->scrollHeight; } + + // TODO: min size } static void areaWidget_get_preferred_width(GtkWidget *w, gint *min, gint *nat) |