fix(style): fix layer type caching
This commit is contained in:
@@ -1011,7 +1011,9 @@ static void lv_obj_set_state(lv_obj_t * obj, lv_state_t new_state)
|
|||||||
lv_free(ts);
|
lv_free(ts);
|
||||||
|
|
||||||
if(cmp_res == _LV_STYLE_STATE_CMP_DIFF_REDRAW) {
|
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) {
|
else if(cmp_res == _LV_STYLE_STATE_CMP_DIFF_LAYOUT) {
|
||||||
lv_obj_refresh_style(obj, LV_PART_ANY, LV_STYLE_PROP_ANY);
|
lv_obj_refresh_style(obj, LV_PART_ANY, LV_STYLE_PROP_ANY);
|
||||||
|
|||||||
Reference in New Issue
Block a user