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