This may not be the only problem with newRect (). The code below works differently. Calling insert () is normal and does not appear on the screen if you include the parent.
I received an error report several times from Fabric.io. The problem is that the first argument to newRect () is not a number. The first argument in my code was a group.
correct ::
local box = ... local gap = display.newRect(0, 0, 320, 150) gap.y = 150 box:insert(gap)
Incorrect ::
local box = ... local gap = display.newRect(box, 0, 0, 320, 150) gap.y = 150