Skip to content

Commit 77f0818

Browse files
committed
Merge cocos2d-x commit (9a905ede56e7675377c3c3152739cd19e30c81f3)
1 parent 5814b70 commit 77f0818

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/ccui/uiwidgets/UICheckBox.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,10 @@ ccui.CheckBox = ccui.Widget.extend(/** @lends ccui.CheckBox# */{
366366
this._backGroundBoxRenderer.setScale(this._backgroundTextureScaleX, this._backgroundTextureScaleY);
367367
this._frontCrossRenderer.setScale(this._backgroundTextureScaleX, this._backgroundTextureScaleY);
368368

369-
if (this._isSelected)
369+
if (this._isSelected){
370370
this._frontCrossRenderer.setVisible(true);
371+
this._frontCrossRendererAdaptDirty = true;
372+
}
371373
},
372374

373375
_onPressStateChangedToPressed: function () {
@@ -395,6 +397,7 @@ ccui.CheckBox = ccui.Widget.extend(/** @lends ccui.CheckBox# */{
395397

396398
if (this._isSelected) {
397399
this._frontCrossDisabledRenderer.setVisible(true);
400+
this._frontCrossDisabledRendererAdaptDirty = true;
398401
}
399402
},
400403

0 commit comments

Comments
 (0)