Im trying to create a new button that has some text in it, but for some reason the label is not behaving as I would expect.
- If I do it like this, then the text is not really centered (the “Start” and “over” are actually aligned left)…
local buttZero = widget.newButton{
width = 50,
height = 30,
labelAlign = “center”,
label = “Start\nover”,
fontSize = 14,
}
- If I do it like this (no \n), then the text “crosses” the border of the button (it does not break the text in two lines).
local buttZero = widget.newButton{
width = 50,
height = 30,
labelAlign = “center”,
label = “Start over”,
fontSize = 14,
}
Am I doing something wrong?