Hi Brent. Thanks for the quick response. It’s Interesting workaround! Kind of a pain in the ass but it gets the job done. Here’s my code for anyone that’s interested:
local data = { x = display.contentCenterX, y = display.contentCenterY, label = "My Button label", onEvent = buttonHandler, cornerRadius = 2, strokeWidth = 4, emboss = false, shape = "roundedRect", fillColor = { default= {0.114, 0.114, 0.114, 255}, over = { 58, 58, 58, 255 } }, data.strokeColor = { default={ 1, 0.4, 0, 1 }, over={ 0.8, 0.8, 1, 1 } } } -- Create a text object that we can use for sizing the button local text = display.newText({ text = data.label, x = display.contentCenterX, y = display.contentCenterY, font = native.systemFont, fontSize = 20 }); -- use the height/width of the text object to size the button and add padding data.width = text.width + 50; data.height = text.height + 50; local button = widget.newButton(data); -- Remove the text node text:removeSelf(); text = nil;