diff --git a/src/widgets/lv_checkbox.c b/src/widgets/lv_checkbox.c index 33a5bb06f..e940fdad3 100644 --- a/src/widgets/lv_checkbox.c +++ b/src/widgets/lv_checkbox.c @@ -85,6 +85,7 @@ void lv_checkbox_set_text(lv_obj_t * obj, const char * txt) cb->static_txt = 0; lv_obj_refresh_self_size(obj); + lv_obj_invalidate(obj); } void lv_checkbox_set_text_static(lv_obj_t * obj, const char * txt) @@ -97,6 +98,7 @@ void lv_checkbox_set_text_static(lv_obj_t * obj, const char * txt) cb->static_txt = 1; lv_obj_refresh_self_size(obj); + lv_obj_invalidate(obj); } /*=====================