fix scroll_view_on_layout_children

This commit is contained in:
lixianjing 2019-06-12 15:50:23 +08:00
parent abdbd608f8
commit 6fd3f970d2

View File

@ -88,6 +88,7 @@ static ret_t scroll_view_on_layout_children(widget_t* widget) {
scroll_view_t* scroll_view = SCROLL_VIEW(widget);
return_value_if_fail(widget != NULL && scroll_view != NULL, RET_BAD_PARAMS);
scroll_view_set_offset(widget, 0, 0);
if (scroll_view->on_layout_children) {
scroll_view->on_layout_children(widget);
} else {