From 4af42b0e443c7a845bd737c4935b349bc37288e4 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Fri, 29 Jul 2016 16:52:54 +0800 Subject: [PATCH] fix editbox placeholder change error --- cocos2d/core/editbox/CCSGEditBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () {