When I create a dropdown it appears to have a fixed width. When the selected option is too long, this results in the text overflowing into the arrow. Is there a way to auto-size the dropdown width to fit the text?
I tried using
LV_SIZE_CONTENT but that worsens the situation and collapses the width to almost nothing.
lv_obj_t *dropdown = lv_dropdown_create(lv_scr_act()); lv_dropdown_set_options(dropdown, get_layout_names()); lv_obj_set_width(dropdown, LV_SIZE_CONTENT); lv_obj_align(dropdown, LV_ALIGN_TOP_RIGHT, -20, 20);