mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 11:39:01 +08:00
fix scroll_view_on_layout_children
This commit is contained in:
parent
abdbd608f8
commit
6fd3f970d2
@ -88,6 +88,7 @@ static ret_t scroll_view_on_layout_children(widget_t* widget) {
|
|||||||
scroll_view_t* scroll_view = SCROLL_VIEW(widget);
|
scroll_view_t* scroll_view = SCROLL_VIEW(widget);
|
||||||
return_value_if_fail(widget != NULL && scroll_view != NULL, RET_BAD_PARAMS);
|
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) {
|
if (scroll_view->on_layout_children) {
|
||||||
scroll_view->on_layout_children(widget);
|
scroll_view->on_layout_children(widget);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user