diff --git a/cocos2d/core/editbox/CCSGEditBox.js b/cocos2d/core/editbox/CCSGEditBox.js index 2c772bcecb..4e6f82e24d 100644 --- a/cocos2d/core/editbox/CCSGEditBox.js +++ b/cocos2d/core/editbox/CCSGEditBox.js @@ -248,6 +248,7 @@ _ccsg.EditBox = _ccsg.Node.extend({ this._placeholderColor = cc.Color.GRAY; this.initWithSizeAndBackgroundSprite(size, normal9SpriteBg); + this._renderCmd._createLabels(); }, _createRenderCmd: function () { @@ -991,7 +992,6 @@ _ccsg.EditBox.KeyboardReturnType = KeyboardReturnType; proto.createNativeControl = function() { this._createDomTextArea(); this._addDomInputControl(); - this._createLabels(); }; proto._addDomInputControl = function () {