mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
lv_ddlist: fix incorrect hegiht on style change
This commit is contained in:
parent
2a15cffbb9
commit
73c83cbd25
@ -681,6 +681,7 @@ static void lv_ddlist_refr_size(lv_obj_t * ddlist, bool anim_en)
|
|||||||
if(anim_en == 0) {
|
if(anim_en == 0) {
|
||||||
lv_obj_set_height(ddlist, new_height);
|
lv_obj_set_height(ddlist, new_height);
|
||||||
lv_ddlist_pos_current_option(ddlist);
|
lv_ddlist_pos_current_option(ddlist);
|
||||||
|
lv_anim_del(ddlist, (lv_anim_fp_t)lv_obj_set_height); /*If an animation is in progress then it will overwrite this changes*/
|
||||||
} else {
|
} else {
|
||||||
#if USE_LV_ANIMATION
|
#if USE_LV_ANIMATION
|
||||||
lv_anim_t a;
|
lv_anim_t a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user