From 369377f3312ea97343336751e3cfb14bf9b16d25 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Tue, 22 Mar 2016 18:00:20 +0800 Subject: [PATCH 1/2] redraw will cause the syncStatus result wrong... --- cocos2d/core/editbox/CCdomNode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos2d/core/editbox/CCdomNode.js b/cocos2d/core/editbox/CCdomNode.js index d772073465..d811717f15 100644 --- a/cocos2d/core/editbox/CCdomNode.js +++ b/cocos2d/core/editbox/CCdomNode.js @@ -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(); }, /** From f7d44afd73afda60c69e0c0f76b60e84bd4a114c Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Tue, 22 Mar 2016 18:25:09 +0800 Subject: [PATCH 2/2] fix system font lineHeight calculate issue --- cocos2d/core/label/CCSGLabel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/label/CCSGLabel.js b/cocos2d/core/label/CCSGLabel.js index af8e80d4a9..4452fe7eb9 100644 --- a/cocos2d/core/label/CCSGLabel.js +++ b/cocos2d/core/label/CCSGLabel.js @@ -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,