File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
217
217
this . _setColorsString ( ) ;
218
218
} ,
219
219
220
- getLineHiehgt : function ( ) {
220
+ getLineHeight : function ( ) {
221
221
return this . _lineHeight || this . _fontClientHeight ;
222
222
} ,
223
223
@@ -764,7 +764,7 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
764
764
var locContentWidth = this . _contentSize . width - locStrokeShadowOffsetX ;
765
765
766
766
//lineHiehgt
767
- var lineHeight = this . getLineHiehgt ( ) ;
767
+ var lineHeight = this . getLineHeight ( ) ;
768
768
var transformTop = ( lineHeight - this . _fontClientHeight ) / 2 ;
769
769
770
770
if ( locHAlignment === cc . TEXT_ALIGNMENT_RIGHT )
@@ -938,9 +938,9 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
938
938
} else {
939
939
if ( this . _dimensions . height === 0 ) {
940
940
if ( this . _isMultiLine )
941
- locSize = cc . size ( 0 | ( locDimensionsWidth + locStrokeShadowOffsetX ) , 0 | ( ( this . getLineHiehgt ( ) * this . _strings . length ) + locStrokeShadowOffsetY ) ) ;
941
+ locSize = cc . size ( 0 | ( locDimensionsWidth + locStrokeShadowOffsetX ) , 0 | ( ( this . getLineHeight ( ) * this . _strings . length ) + locStrokeShadowOffsetY ) ) ;
942
942
else
943
- locSize = cc . size ( 0 | ( locDimensionsWidth + locStrokeShadowOffsetX ) , 0 | ( this . getLineHiehgt ( ) + locStrokeShadowOffsetY ) ) ;
943
+ locSize = cc . size ( 0 | ( locDimensionsWidth + locStrokeShadowOffsetX ) , 0 | ( this . getLineHeight ( ) + locStrokeShadowOffsetY ) ) ;
944
944
} else {
945
945
//dimension is already set, contentSize must be same as dimension
946
946
locSize = cc . size ( 0 | ( locDimensionsWidth + locStrokeShadowOffsetX ) , 0 | ( this . _dimensions . height + locStrokeShadowOffsetY ) ) ;
You can’t perform that action at this time.
0 commit comments