Merge pull request #520 from zilongshanren/fix-editbox-bgsprite-position

Fix editbox bgsprite position
This commit is contained in:
pandamicro
2016-03-22 18:41:52 +08:00
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -239,7 +239,7 @@ cc.DOM.methods = /** @lends cc.DOM# */{
this.canvas.height = locContentSize.height;
}
this.setNodeDirty();
this.redraw();
// this.redraw();
},
/**
@@ -261,7 +261,7 @@ cc.DOM.methods = /** @lends cc.DOM# */{
this.canvas.width = locContentSize.width;
}
this.setNodeDirty();
this.redraw();
// this.redraw();
},
/**
@@ -283,7 +283,7 @@ cc.DOM.methods = /** @lends cc.DOM# */{
this.canvas.height = locContentSize.height;
}
this.setNodeDirty();
this.redraw();
// this.redraw();
},
/**
+1 -1
View File
@@ -109,7 +109,7 @@ _ccsg.Label = _ccsg.Node.extend({
_vAlign: cc.VerticalTextAlignment.TOP, //0 bottom,1 center, 2 top
_string: "",
_fontSize: 40,
_drawFontsize: 0,
_drawFontsize: 40,
_overFlow: 0, //see _ccsg.Label.Overflow
_isWrapText: true,
_spacingX: 0,