improve scroll view

This commit is contained in:
lixianjing 2024-08-21 15:41:19 +08:00
parent 65b9e05339
commit ffbaf9afaf
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
2024/08/21
* release 1.8
* 修复scroll_view调整大小导致虚高未恢复问题(感谢颖健提供补丁)
2024/08/16
* 修复编译警告。

View File

@ -79,8 +79,8 @@ static ret_t scroll_view_update_virtual_size(widget_t* widget) {
scroll_view_t* scroll_view = SCROLL_VIEW(widget);
return_value_if_fail(scroll_view != NULL && widget != NULL, RET_BAD_PARAMS);
virtual_w = tk_max(scroll_view->virtual_w, widget->w);
virtual_h = tk_max(scroll_view->virtual_h, widget->h);
virtual_w = widget->w;
virtual_h = widget->h;
WIDGET_FOR_EACH_CHILD_BEGIN(widget, iter, i)
int32_t r = 0;