How to change Drop-down list hight?

My gui tool is NXP GUI Guider.
i drag Drop-down list, but it hight is disable.(it means auto).
can i change it height by edit lvgl file .h or .c?

j change it hight by set style max_hight, but it not work!

In NXP GUI Guider edit mode and run mode, the size is not the same…

in lvgl v8.2,
the drop down list scroll will cause ghost like this.

it’s a bug?

You can try lv_obj_set_height() to set the height.

i use this lv_obj_set_height.
it work, but the text not in center…

I think that is because the padding is set by default, try to reduce the padding by the following code:

    lv_obj_set_style_pad_top(dropdown, 2, 0);
    lv_obj_set_style_pad_bottom(dropdown, 2, 0);