File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
extensions/ccui/uiwidgets Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ ccui.CheckBox = ccui.Widget.extend(/** @lends ccui.CheckBox# */{
416
416
* @deprecated since v3.1, please use isSelected.
417
417
*/
418
418
getSelectedState : function ( ) {
419
- this . isSelected ( ) ;
419
+ return this . isSelected ( ) ;
420
420
} ,
421
421
422
422
/**
Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
78
78
this . addProtectedChild ( this . _imageRenderer , ccui . ImageView . RENDERER_ZORDER , - 1 ) ;
79
79
} ,
80
80
81
+ setRotation : function ( rotate ) {
82
+ this . _imageRenderer . setRotation ( rotate ) ;
83
+ } ,
84
+
81
85
/**
82
86
* Loads textures for button.
83
87
* @param {String } fileName
@@ -127,6 +131,8 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
127
131
self . _updateChildrenDisplayedRGBA ( ) ;
128
132
129
133
self . _updateContentSizeWithTextureSize ( self . _imageTextureSize ) ;
134
+ if ( self . _scale9Enabled )
135
+ self . setCapInsets ( self . _capInsets ) ;
130
136
self . _imageRendererAdaptDirty = true ;
131
137
} ) ;
132
138
}
You can’t perform that action at this time.
0 commit comments