From 4905acfa0b59b3fcc7d48435dc9689cd1dcb7605 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Fri, 7 Mar 2014 18:31:33 +0800 Subject: [PATCH] label:fixed vertical alignment is incorrect. --- cocos/2d/CCLabelTextFormatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCLabelTextFormatter.cpp b/cocos/2d/CCLabelTextFormatter.cpp index abe500a735..9f0efe1eaa 100644 --- a/cocos/2d/CCLabelTextFormatter.cpp +++ b/cocos/2d/CCLabelTextFormatter.cpp @@ -304,7 +304,7 @@ bool LabelTextFormatter::createStringSprites(Label *theLabel) nextFontPositionY = (labelHeightPixel + totalHeight) / 2.0f; break; case TextVAlignment::BOTTOM: - nextFontPositionY = labelHeightPixel; + nextFontPositionY = totalHeight; break; default: break;