Replacement of `lv_roller_set_hor_fit`

Description

After updating the lvgl, I got this error: ‘undefined reference to `lv_roller_set_hor_fit’’

What MCU/Processor/Board and compiler are you using?

STM32F429IGT6, GCC

What do you want to achieve?

I want to know what should I replace with lv_roller_set_hor_fit function in my codes.

What have you tried so far?

I think I should replace these lines:

lv_roller_set_hor_fit(roller_time_second, false);
lv_obj_set_width(roller_time_second, 100);

with this one:

lv_roller_set_fix_width(roller_time_second, 100);

Am I right?

Looks correct to me… why don’t you try it and see what happens?

1 Like

That’s correct!

1 Like

I test it, just want to make sure.:upside_down_face:
anyway thank u guys.