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:
parent
933db950bb
commit
efe6c29b5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user