fix(table): refresh only the changed cell's height

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-08 23:14:26 +01:00
parent c01f54d206
commit 289f8e4bac
2 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ static void event_cb(lv_obj_t * obj, lv_event_t e)
lv_draw_rect_dsc_t rect_dsc;
lv_draw_rect_dsc_init(&rect_dsc);
rect_dsc.bg_color = chk ? lv_color_green() : lv_color_grey_lighten_2();
rect_dsc.bg_color = chk ? lv_theme_get_color_primary(obj) : lv_color_grey_lighten_2();
rect_dsc.radius = LV_RADIUS_CIRCLE;
lv_area_t sw_area;