Y distance of text

If one does display.newText(options) with the width set and height of 0, the text nicely wraps. Is it possible to know the y position at the bottom of the text? I would like to position some switches (radio buttons or checkboxes) below the text. Since both the length of the text and the size of the display may vary, it is not obvious where to start placing the buttons.

Thank you.

Assuming you did not modify the anchor points for the text object it would be:

local obj = display.newText( ... ) -- Create the obj with your args. local bottomY = obj.y + obj.contentHeight/2

Assuming you did not modify the anchor points for the text object it would be:

local obj = display.newText( ... ) -- Create the obj with your args. local bottomY = obj.y + obj.contentHeight/2