Merge pull request #983 from zilongshanren/fix-editbox-label-create-issue

fix editbox placeholder change error
This commit is contained in:
Jare Guo
2016-07-29 17:00:14 +08:00
committed by GitHub
+1 -1
View File
@@ -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 () {