File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
extensions/ccui/uiwidgets Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments