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.
local box = ... local gap = display.newRect(0, 0, 320, 150) gap.y = 150 box:insert(gap)
correct.png 369.09KB 0 downloads
local box = ... local gap = display.newRect(box, 0, 0, 320, 150) gap.y = 150
incorrect.png 361.81KB 0 downloads