We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff0147 commit 41df1feCopy full SHA for 41df1fe
extensions/ccui/uiwidgets/UIButton.js
@@ -116,6 +116,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
116
this._buttonDisableRenderer = new cc.Sprite();
117
this._titleRenderer = new cc.LabelTTF("");
118
this._titleRenderer.setAnchorPoint(0.5, 0.5);
119
+ this._titleRenderer.setVerticalAlignment(cc.VERTICAL_TEXT_ALIGNMENT_CENTER);
120
121
this.addProtectedChild(this._buttonNormalRenderer, ccui.Button.NORMAL_RENDERER_ZORDER, -1);
122
this.addProtectedChild(this._buttonClickedRenderer, ccui.Button.PRESSED_RENDERER_ZORDER, -1);
0 commit comments