How to set drop down list with fixed width?

Hi !
I have a drop down list with 10 options. I need use “lv_ddlist_set_draw_arrow(ddl_color, true);” function to draw arrow. But when i select option the arrow is override the text. I had use “lv_obj_set_width(ddl_color, 400);” to change this dropdown list, but it not work. How to fix this ???Capture

Hi,
You need call lv_ddlist_set_hor_fit(ddlist, false) before lv_obj_set_width

1 Like

Thanks bro !