mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve scroll view
This commit is contained in:
parent
65b9e05339
commit
ffbaf9afaf
@ -2,6 +2,7 @@
|
||||
|
||||
2024/08/21
|
||||
* release 1.8
|
||||
* 修复scroll_view调整大小导致虚高未恢复问题(感谢颖健提供补丁)
|
||||
|
||||
2024/08/16
|
||||
* 修复编译警告。
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user