With Fixed Height checked, for the canvas of my scene,
my Fb instant app, is not centred in the browser. In face it starts from the left corner.
Anyone knows how to fix this ?
FYI, my design res is 960 x 640, and the scene works fine in mobile devices.
@jare
Probably, the fix added in the CocosReader.cpp
is not working for the Instant games build.
// make scene at the center of screen
// should not just node's position because it is a Scene, and it will cause issue that click position is not correct(it is a bug of cocos2d-x)
// and should not change camera's position
for (auto& child : node->getChildren())
if (dynamic_cast<Camera*>(child) == nullptr)
child->setPosition(child->getPosition() + _positionDiffDesignResolution);
This code might not be working when building for FB instant games.