mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #520 from zilongshanren/fix-editbox-bgsprite-position
Fix editbox bgsprite position
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user