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# */{
416416 * @deprecated since v3.1, please use isSelected.
417417 */
418418 getSelectedState : function ( ) {
419- this . isSelected ( ) ;
419+ return this . isSelected ( ) ;
420420 } ,
421421
422422 /**
Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
7878 this . addProtectedChild ( this . _imageRenderer , ccui . ImageView . RENDERER_ZORDER , - 1 ) ;
7979 } ,
8080
81+ setRotation : function ( rotate ) {
82+ this . _imageRenderer . setRotation ( rotate ) ;
83+ } ,
84+
8185 /**
8286 * Loads textures for button.
8387 * @param {String } fileName
@@ -127,6 +131,8 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
127131 self . _updateChildrenDisplayedRGBA ( ) ;
128132
129133 self . _updateContentSizeWithTextureSize ( self . _imageTextureSize ) ;
134+ if ( self . _scale9Enabled )
135+ self . setCapInsets ( self . _capInsets ) ;
130136 self . _imageRendererAdaptDirty = true ;
131137 } ) ;
132138 }
You can’t perform that action at this time.
0 commit comments