Fixed #2511 fixed a bug of cc.EditBox and a bug of cc.Scale9Sprite

Fixed a bug of cc.EditBox and a bug of cc.Scale9Sprite