lv_obj_get_y() function
Get the y coordinate of object.
Return value
distance of `obj` from the top side of its parent plus the parent's top padding
Notes
The position of the object is recalculated only on the next redraw. To force coordinate recalculation call `lv_obj_update_layout(obj)`. Zero return value means the object is on the top padding of the parent, and not on the top edge. Scrolling of the parent doesn't change the returned value. The returned value is always the distance from the parent even if `obj` is positioned by a layout.