lv_obj_get_content_width() function
Get the width reduced by the left and right padding and the border width.
Return value
the width which still fits into its parent without causing overflow (making the parent scrollable)
Notes
The position of the object is recalculated only on the next redraw. To force coordinate recalculation call `lv_obj_update_layout(obj)`.