problem of display.newContainer()
Hi there
strange symptoms has come out in newContainer().
I run the designators in the sequence shown below.
( 1) local container = display.newContainer( display.contentWidth*2, display.contentHeight*2 )
( 2) local group = display.newGroup()
( 3) local bg1 = display.newRect( 0, 0, display.contentWidth*2, display.contentHeight*2 )
( 4) bg1:setFillColor( 1,0,0 )
( 5) group:insert( bg1 )
( 6) local bg2 = display.newRect( 0, 0, display.contentWidth, display.contentHeight )
( 7) bg2.x = bg2.width * 0.5
( 8) bg2.y = bg2.height * 0.5
( 9) bg2:setFillColor( 1,1,1 )
(10) group:insert( bg2 )
(11) container:insert( group )
(1), it is like to clipping the screen size
It is not by covering the entire screen if you do not double the size specified.
(11) but is the biggest problem,
(x,y,w,h) = (0,0, display.contentWidth, display.contentHeight)
part less than the x-coordinate 0 is not clipping.
y-coordinate is similar.
The symptoms or would specification.
Or Is it a known issue.
I’m using NexusOne settings simulator.
(View As NexusOne)
Thank you for your attention.
(I have translated into English in the Japanese google translation.)