BUG:2.3.2版本 spine 在ios中获取得宽高为0!在网页正常

cocos 2.3.2版本

let node = new cc.Node();
node.parent = this.monsterSprite.node;
let sc = node.addComponent(sp.Skeleton);
sc.skeletonData = this.spineData;
sc.setSkin(“default”);
sc.setAnimation(0, ‘newAnimation’, true);
cc.log(node.width, node.height);

在网页上 正常
在iphone上 node.width, node.height 都为0

node.on(“size-changed”, function() {
// xxx
});

并没有用!

是有这个问题,原生层的数据没有同步到JS层,已反馈处理了。

将会在 2.3.4 或者 2.4.0 修复
https://github.com/cocos-creator-packages/jsb-adapter/pull/273