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

chore(demo_benchmark): make the table widget local

fixes #5025
This commit is contained in:
Gabor Kiss-Vamosi 2023-12-18 13:21:25 +01:00
parent 15d273be7b
commit b54549cae4

View File

@ -529,13 +529,12 @@ static void table_draw_task_event_cb(lv_event_t * e)
}
lv_obj_t * table;
static void summary_create(void)
{
lv_obj_clean(lv_screen_active());
lv_obj_set_style_pad_hor(lv_screen_active(), 0, 0);
table = lv_table_create(lv_screen_active());
lv_obj_t * table = lv_table_create(lv_screen_active());
lv_obj_set_width(table, lv_pct(100));
lv_obj_set_style_max_height(table, lv_pct(100), 0);
lv_obj_add_flag(table, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS);