Cocostudio 2.1 cocos2d-x3.4屏幕适配问题

cocostuido版本为最新的2.1,cocos引擎是3.4的。
在cocostudio里面创建了一个testScene(640960),在scene最右上角放置一个精灵 设置为上对齐。
放入代码工程里面运行,选择iPhone5的分辨率(640
1136),显示没有在右上角,而是往下移动了一些。
代码里面设置的设配方案是

Size screenSize = Director::getInstance()->getOpenGLView()->getFrameSize();

// solution of resolution
if(screenSize.height / screenSize.width < 4.0f / 3.0f)
{ // 4:3 ipad的长宽比
Director::getInstance()->getOpenGLView()->setDesignResolutionSize(640, 960, ResolutionPolicy::EXACT_FIT);
}
else
{
Director::getInstance()->getOpenGLView()->setDesignResolutionSize(640, 960, ResolutionPolicy::FIXED_WIDTH);
}
??????
为什么这个精灵没有上对齐 而感觉是下对齐呢。图详见附件

测试下
这个地方 setDesignResolutionSize
设置为screenSize
而不是640, 960

设置了貌似还是不行呢。。。用cocosbuilder 是正常的,

我调试代码的时候发现cocos解析csb文件的时候 , 有一个地方是通过对齐方式来改变节点的坐标的。
UILayoutComponent.cpp (line 302)
void LayoutComponent::setVerticalEdge(VerticalEdge vEage)
{
_verticalEdge = vEage;
if (_verticalEdge != VerticalEdge::None)
{
_usingPositionPercentY = false;
}

    Node* parent = this->getOwnerParent();
    if (parent != nullptr)
    {
        Point ownerPoint = _owner->getPosition();
        const Size& parentSize = parent->getContentSize();
        if (parentSize.height != 0)
            _positionPercentY = ownerPoint.y / parentSize.height;
        else
        {
            _positionPercentY = 0;
            ownerPoint.y = 0;
            if (_usingPositionPercentY)
                _owner->setPosition(ownerPoint);
        }

        this->refreshVerticalMargin();
    }
}

但是有个限制条件,当this->getOwnerParent()不为nullptr的时候才会进入到if条件里面 根据对齐方式来修改坐标。而我每次调试的时候 this->getOwnerParent()都是为NULL。
是不是我使用cocostudio的时候有什么地方没用对哦???

Director::getInstance()->getOpenGLView()->getFrameSize();
需要把你的节点的大小设置为跟这个地方获取到的值一样。

还有dolayout等操作
具体参考下这篇帖子下方的的注意点
http://www.cocoachina.com/bbs/read.php?tid-280071.html

跪求你们弄一个 cocostudio v2.1 cocos3.4的屏幕适配的demo,