Type Function Library widget.* Return value Numbers Revision 2017.3060 Keywords widget, scroll view, ScrollViewWidget, getContentPosition See also widget.newScrollView() ScrollViewWidget
Returns the x and y coordinates of the ScrollViewWidget content.
This function only returns the correct values if the padding along the appropriate axis is set to 0
, in specific leftPadding
and rightPadding
for x values or topPadding
and bottomPadding
for y values.
object:getContentPosition()
local x, y = scrollView:getContentPosition()