在cocosStudio里面编辑的checkBOX,在游戏中第一次进入时勾选的钩钩出现大小不对的异常
解决方案:底层UICheckBox.js里面,点击事件setSelected函数内添加this._frontCrossRendererAdaptDirty = true;
/** * Sets the selected state to ccui.CheckBox * @param {Boolean} selected */ setSelected: function (selected) { if (selected === this._isSelected) return; this._isSelected = selected; this._frontCrossRenderer.setVisible(this._isSelected); this._frontCrossRendererAdaptDirty = true; },