mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve widget_set_need_relayout
This commit is contained in:
parent
6e56a46031
commit
03801b61da
@ -3,6 +3,7 @@
|
||||
2021/05/15
|
||||
* 完善圆角矩形(感谢智明提供补丁)
|
||||
* 修改label高度的限制条件。
|
||||
* 完善widget\_set\_need\_relayout。
|
||||
|
||||
2021/05/14
|
||||
* switch支持click事件,支持space/return触发。
|
||||
|
@ -4138,6 +4138,11 @@ ret_t widget_set_need_relayout(widget_t* widget) {
|
||||
return_value_if_fail(widget != NULL, RET_BAD_PARAMS);
|
||||
|
||||
widget->need_relayout = TRUE;
|
||||
if (widget->parent != NULL) {
|
||||
if (widget->parent->auto_adjust_size || widget->parent->children_layout != NULL) {
|
||||
widget_set_need_relayout(widget->parent);
|
||||
}
|
||||
}
|
||||
|
||||
return RET_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user