|
@@ -914,13 +914,13 @@ static dispatch_queue_t YYLabelGetReleaseQueue() {
|
|
CGPoint point = CGPointZero;
|
|
CGPoint point = CGPointZero;
|
|
if (verticalAlignment == YYTextVerticalAlignmentCenter) {
|
|
if (verticalAlignment == YYTextVerticalAlignmentCenter) {
|
|
if (layout.container.isVerticalForm) {
|
|
if (layout.container.isVerticalForm) {
|
|
- point.x = (size.width - boundingSize.width) * 0.5;
|
|
|
|
|
|
+ point.x = -(size.width - boundingSize.width) * 0.5;
|
|
} else {
|
|
} else {
|
|
point.y = (size.height - boundingSize.height) * 0.5;
|
|
point.y = (size.height - boundingSize.height) * 0.5;
|
|
}
|
|
}
|
|
} else if (verticalAlignment == YYTextVerticalAlignmentBottom) {
|
|
} else if (verticalAlignment == YYTextVerticalAlignmentBottom) {
|
|
if (layout.container.isVerticalForm) {
|
|
if (layout.container.isVerticalForm) {
|
|
- point.x = (size.width - boundingSize.width);
|
|
|
|
|
|
+ point.x = -(size.width - boundingSize.width);
|
|
} else {
|
|
} else {
|
|
point.y = (size.height - boundingSize.height);
|
|
point.y = (size.height - boundingSize.height);
|
|
}
|
|
}
|