I was wondering if it is possible to change the height of multiline text display object after creation. I am currently having a problem that my display.newText may be going outside of a certain space that I have designated it to be in (this is happening due to user input). I was wondering if it is possible to do something like the code below. I have tried the code below and I know that it does not work so is there another solution?
local textOption = { text = "", x = rectangle.x, y = rectangle.y, width = rectangle7.width - display.contentWidth/2.5, font = native.systemFontBold, fontSize = display.contentHeight/24, align = "center" } local myText = display.newText(textOption) if myText.height \> rectangle.height then myText.height = rectangle.height end