wlt: toolkit: fix scheduling resize on widget-creation

Instead of scheduling for redraw, we have to schedule for resize as the
new widget might want to change the size constraints.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-09-30 23:49:24 +02:00
parent 0f04e6a86c
commit f145bd0ee5

View File

@ -1370,7 +1370,7 @@ int wlt_window_create_widget(struct wlt_window *wnd,
widget->wnd = wnd;
widget->data = data;
wlt_window_schedule_redraw(wnd);
wlt_window_set_size(wnd, wnd->buffer.width, wnd->buffer.height);
shl_dlist_link_tail(&wnd->widget_list, &widget->list);
*out = widget;
return 0;