1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(layout): fix the handling of FLOATING children

This commit is contained in:
Gabor Kiss-Vamosi 2022-03-20 21:44:57 +01:00
parent 5546b9d740
commit 48728a7839
2 changed files with 2 additions and 2 deletions

View File

@ -525,7 +525,7 @@ static void children_repos(lv_obj_t * cont, flex_t * f, int32_t item_first_id, i
item->coords.y1 += diff_y;
item->coords.y2 += diff_y;
lv_obj_invalidate(item);
lv_obj_move_children_by(item, diff_x, diff_y, true);
lv_obj_move_children_by(item, diff_x, diff_y, false);
}
if(!(f->row && rtl)) main_pos += area_get_main_size(&item->coords) + item_gap + place_gap;

View File

@ -685,7 +685,7 @@ static void item_repos(lv_obj_t * item, _lv_grid_calc_t * c, item_repos_hint_t *
item->coords.y1 += diff_y;
item->coords.y2 += diff_y;
lv_obj_invalidate(item);
lv_obj_move_children_by(item, diff_x, diff_y, true);
lv_obj_move_children_by(item, diff_x, diff_y, false);
}
}