mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(dropdown) fix list height
This commit is contained in:
parent
feb5b0f345
commit
bd361597ef
@ -430,6 +430,7 @@ void lv_dropdown_open(lv_obj_t * dropdown_obj)
|
||||
lv_obj_set_width(dropdown->list, lv_obj_get_width(dropdown_obj));
|
||||
}
|
||||
|
||||
lv_obj_update_layout(label);
|
||||
lv_coord_t label_h = lv_obj_get_height(label);
|
||||
lv_coord_t top = lv_obj_get_style_pad_top(dropdown->list, LV_PART_MAIN);
|
||||
lv_coord_t bottom = lv_obj_get_style_pad_bottom(dropdown->list, LV_PART_MAIN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user