mirror of https://github.com/axmolengine/axmol.git
Merge pull request #18240 from pandamicro/v3.16
Fix Label cutting issue in web test case
This commit is contained in:
commit
3603ace449
|
@ -1078,7 +1078,7 @@ var LabelTTFStrokeShadowTest = AtlasDemo.extend({
|
|||
var fontDefRedShadow = new cc.FontDefinition();
|
||||
fontDefRedShadow.fontName = "Arial";
|
||||
fontDefRedShadow.fontSize = 32;
|
||||
fontDefRedShadow.textAlign = cc.TEXT_ALIGNMENT_CENTER;
|
||||
fontDefRedShadow.textAlign = cc.TEXT_ALIGNMENT_LEFT;
|
||||
fontDefRedShadow.verticalAlign = cc.VERTICAL_TEXT_ALIGNMENT_TOP;
|
||||
fontDefRedShadow.fillStyle = redColor;
|
||||
fontDefRedShadow.boundingWidth = blockSize.width;
|
||||
|
@ -1099,7 +1099,7 @@ var LabelTTFStrokeShadowTest = AtlasDemo.extend({
|
|||
var fontDefBlueStroke = new cc.FontDefinition();
|
||||
fontDefBlueStroke.fontName = "Arial";
|
||||
fontDefBlueStroke.fontSize = 32;
|
||||
fontDefBlueStroke.textAlign = cc.TEXT_ALIGNMENT_CENTER;
|
||||
fontDefBlueStroke.textAlign = cc.TEXT_ALIGNMENT_LEFT;
|
||||
fontDefBlueStroke.verticalAlign = cc.VERTICAL_TEXT_ALIGNMENT_TOP;
|
||||
fontDefBlueStroke.fillStyle = blueColor;
|
||||
fontDefBlueStroke.boundingWidth = blockSize.width;
|
||||
|
@ -1118,7 +1118,7 @@ var LabelTTFStrokeShadowTest = AtlasDemo.extend({
|
|||
var fontDefRedStrokeShadow = new cc.FontDefinition();
|
||||
fontDefRedStrokeShadow.fontName = "Arial";
|
||||
fontDefRedStrokeShadow.fontSize = 32;
|
||||
fontDefRedStrokeShadow.textAlign = cc.TEXT_ALIGNMENT_CENTER;
|
||||
fontDefRedStrokeShadow.textAlign = cc.TEXT_ALIGNMENT_LEFT;
|
||||
fontDefRedStrokeShadow.verticalAlign = cc.VERTICAL_TEXT_ALIGNMENT_TOP;
|
||||
fontDefRedStrokeShadow.fillStyle = blueColor;
|
||||
fontDefRedStrokeShadow.boundingWidth = blockSize.width;
|
||||
|
|
Loading…
Reference in New Issue