fix(grid.h) typos (#2395)

* fix(grid.h) typos

* grid:replace LV_COORD_MAX use LV_GRID_TEMPLATE_LAST

Co-authored-by: guowei15 <guowei15@xiaomi.com>
This commit is contained in:
guoweilkd
2021-07-23 17:52:09 +08:00
committed by GitHub
parent 4d43b99702
commit 7f9297879f
3 changed files with 5 additions and 5 deletions

View File

@@ -6,8 +6,8 @@
*/
void lv_example_grid_1(void)
{
static lv_coord_t col_dsc[] = {70, 70, 70, LV_COORD_MAX};
static lv_coord_t row_dsc[] = {50, 50, 50, LV_COORD_MAX};
static lv_coord_t col_dsc[] = {70, 70, 70, LV_GRID_TEMPLATE_LAST};
static lv_coord_t row_dsc[] = {50, 50, 50, LV_GRID_TEMPLATE_LAST};
/*Create a container with grid*/
lv_obj_t * cont = lv_obj_create(lv_scr_act());