1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

chore(flex): add grow_item_cnt check in the while loop of children_repos (#4383)

This commit is contained in:
bjsylvia 2023-07-19 21:10:13 +08:00 committed by GitHub
parent 933db950bb
commit efe6c29b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ static void children_repos(lv_obj_t * cont, flex_t * f, int32_t item_first_id, i
/*Calculate the size of grow items first*/
uint32_t i;
bool grow_reiterate = true;
while(grow_reiterate) {
while(grow_reiterate && t->grow_item_cnt) {
grow_reiterate = false;
lv_coord_t grow_value_sum = 0;
lv_coord_t grow_max_size = t->track_main_size - t->track_fix_main_size;