fix(style): fix layer type caching

This commit is contained in:
Gabor Kiss-Vamosi
2023-03-07 08:54:04 +01:00
parent 6cd98892a4
commit 0107879924

View File

@@ -1011,7 +1011,9 @@ static void lv_obj_set_state(lv_obj_t * obj, lv_state_t new_state)
lv_free(ts);
if(cmp_res == _LV_STYLE_STATE_CMP_DIFF_REDRAW) {
lv_obj_invalidate(obj);
// lv_obj_invalidate(obj);
/*Invalidation is not enough, e.g. layer type needs to be updated too*/
lv_obj_refresh_style(obj, LV_PART_ANY, LV_STYLE_PROP_ANY);
}
else if(cmp_res == _LV_STYLE_STATE_CMP_DIFF_LAYOUT) {
lv_obj_refresh_style(obj, LV_PART_ANY, LV_STYLE_PROP_ANY);