[][src]Function lvgl::widgets::roller::set_auto_fit

pub fn set_auto_fit(roller: *mut lv_obj_t, auto_fit: bool) -> MynewtResult<()>

Allow automatically setting the width of roller according to it's content.

  • roller: pointer to a roller object
  • auto_fit: true: enable auto fit