Editbox bug

Use editbox like this;

          var editBox1=cc.EditBox.create(cc.size(280,78),cc.Scale9Sprite.create(img_login_inputbg));
            editBox1.setDelegate(this);
            editBox1.setInputMode(cc.EDITBOX_INPUT_MODE_ANY);
            editBox1.setAnchorPoint(cc.p(0.5,1));
            editBox1.setPosition(cc.p(screenWidth/2-4,screenHeight-762));
            editBox1.setFont("黑体",24);
            this.addChild(editBox1);
            this._nameBox=editBox1;

            var item1=LoginLayer.createButton("随 机",this.randomName,this);
            item1.setAnchorPoint(cc.p(0,1));
            item1.setPosition(cc.p(450,screenHeight-761));

    randomName:function(){
           var me=this;
            me._nameBox.setText(data.rname);
            me._nameBox.setVisible(true);
    },

Can not display the text value on editbox if don’t click the editbox, how to resovle it ?

I remember I have resolved this issue. Could you try the version on the develop branch of github?

I have merge the modify to my code, and the issue is resolved,Thanks !

James Chen wrote:

I remember I have resolved this issue. Could you try the version on the develop branch of github?