lv_obj_get_content_height() function
Get the height reduced by the top and bottom padding and the border width.
Return value
the height which still fits into the 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)`.