lvgl v6.1.1. Roller object.
When i set options “1\n2\n33333333\n4”, so width of the third element is bigger, than parent container, it appears with scrolling possition above the first element (so first item is half string below the selected string).
With options “1\n33333333”, scroll position initially is between items.
Error appears only with normal roller mode.
After any scrolling everything is fine.
auto cont = lv_cont_create(lv_scr_act(), nullptr);
lv_obj_set_size(cont, LV_HOR_RES, LV_VER_RES);
auto rol = lv_roller_create(cont, nullptr);
std::string str;
str = "1\n2\n33333333\n4"; //error
//str = "1\n33333333"; //error
lv_roller_set_options(rol, str.data(), LV_ROLLER_MODE_NORMAL);
lv_roller_set_selected(rol, 0, false);