From 5bc529bc467a6d3d74803eeef8db38e58614f422 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 26 May 2021 23:11:29 +0200 Subject: [PATCH] fix(example) fix the grid examples to not have scrollbars on the items --- examples/layouts/grid/lv_example_grid_3.c | 6 +++--- examples/layouts/grid/lv_example_grid_4.c | 2 +- examples/layouts/grid/lv_example_grid_5.c | 2 +- examples/layouts/grid/lv_example_grid_6.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/layouts/grid/lv_example_grid_3.c b/examples/layouts/grid/lv_example_grid_3.c index 36150dabe..4b77886aa 100644 --- a/examples/layouts/grid/lv_example_grid_3.c +++ b/examples/layouts/grid/lv_example_grid_3.c @@ -11,10 +11,10 @@ void lv_example_grid_3(void) *Column 3: 2 unit from the remaining free space*/ static lv_coord_t col_dsc[] = {60, LV_GRID_FR(1), LV_GRID_FR(2), LV_GRID_TEMPLATE_LAST}; - /*Row 1: fix width 60 px + /*Row 1: fix width 50 px *Row 2: 1 unit from the remaining free space - *Row 3: fix width 60 px*/ - static lv_coord_t row_dsc[] = {40, LV_GRID_FR(1), 40, LV_GRID_TEMPLATE_LAST}; + *Row 3: fix width 50 px*/ + static lv_coord_t row_dsc[] = {50, LV_GRID_FR(1), 50, LV_GRID_TEMPLATE_LAST}; /*Create a container with grid*/ lv_obj_t * cont = lv_obj_create(lv_scr_act()); diff --git a/examples/layouts/grid/lv_example_grid_4.c b/examples/layouts/grid/lv_example_grid_4.c index 65fdb73b9..2349c41f8 100644 --- a/examples/layouts/grid/lv_example_grid_4.c +++ b/examples/layouts/grid/lv_example_grid_4.c @@ -7,7 +7,7 @@ void lv_example_grid_4(void) { static lv_coord_t col_dsc[] = {60, 60, 60, LV_GRID_TEMPLATE_LAST}; - static lv_coord_t row_dsc[] = {40, 40, 40, LV_GRID_TEMPLATE_LAST}; + static lv_coord_t row_dsc[] = {45, 45, 45, LV_GRID_TEMPLATE_LAST}; /*Add space between the columns and move the rows to the bottom (end)*/ diff --git a/examples/layouts/grid/lv_example_grid_5.c b/examples/layouts/grid/lv_example_grid_5.c index b57057d5a..1719ee1bb 100644 --- a/examples/layouts/grid/lv_example_grid_5.c +++ b/examples/layouts/grid/lv_example_grid_5.c @@ -19,7 +19,7 @@ void lv_example_grid_5(void) /*60x60 cells*/ static lv_coord_t col_dsc[] = {60, 60, 60, LV_GRID_TEMPLATE_LAST}; - static lv_coord_t row_dsc[] = {40, 40, 40, LV_GRID_TEMPLATE_LAST}; + static lv_coord_t row_dsc[] = {45, 45, 45, LV_GRID_TEMPLATE_LAST}; /*Create a container with grid*/ lv_obj_t * cont = lv_obj_create(lv_scr_act()); diff --git a/examples/layouts/grid/lv_example_grid_6.c b/examples/layouts/grid/lv_example_grid_6.c index 2ff411681..c9fc34d6a 100644 --- a/examples/layouts/grid/lv_example_grid_6.c +++ b/examples/layouts/grid/lv_example_grid_6.c @@ -8,7 +8,7 @@ void lv_example_grid_6(void) { static lv_coord_t col_dsc[] = {60, 60, 60, LV_GRID_TEMPLATE_LAST}; - static lv_coord_t row_dsc[] = {40, 40, 40, LV_GRID_TEMPLATE_LAST}; + static lv_coord_t row_dsc[] = {45, 45, 45, LV_GRID_TEMPLATE_LAST}; /*Create a container with grid*/ lv_obj_t * cont = lv_obj_create(lv_scr_act());