Skip to content

Commit 93ce875

Browse files
author
joshuastray
committed
fix the height of label to 0
1 parent 4c7b2af commit 93ce875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/js-moonwarriors/src/AboutLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var AboutLayer = cc.Layer.extend({
1717
this.addChild(title);
1818

1919
// There is a bug in LabelTTF native. Apparently it fails with some unicode chars.
20-
var about = new cc.LabelTTF(" This showcase utilizes many features from Cocos2d-html5 engine, including: Parallax background, tilemap, actions, ease, frame animation, schedule, Labels, keyboard Dispatcher, Scene Transition. \n Art and audio is copyrighted by Enigmata Genus Revenge, you may not use any copyrigted material without permission. This showcase is licensed under GPL. \n \n Programmer: \n Shengxiang Chen (陈升想) \n Dingping Lv (吕定平) \n Effects animation: Hao Wu(吴昊)\n Quality Assurance: Sean Lin(林顺)", "Arial", 21, cc.size(MW.WIDTH * 0.85, MW.HEIGHT / 2), cc.TEXT_ALIGNMENT_LEFT );
20+
var about = new cc.LabelTTF(" This showcase utilizes many features from Cocos2d-html5 engine, including: Parallax background, tilemap, actions, ease, frame animation, schedule, Labels, keyboard Dispatcher, Scene Transition. \n Art and audio is copyrighted by Enigmata Genus Revenge, you may not use any copyrigted material without permission. This showcase is licensed under GPL. \n \n Programmer: \n Shengxiang Chen (陈升想) \n Dingping Lv (吕定平) \n Effects animation: Hao Wu(吴昊)\n Quality Assurance: Sean Lin(林顺)", "Arial", 21, cc.size(MW.WIDTH * 0.85, 0), cc.TEXT_ALIGNMENT_LEFT );
2121
about.attr({
2222
x: winSize.width / 2,
2323
y: MW.HEIGHT / 2 + 30,

0 commit comments

Comments
 (0)