fix(android): textAlign should not affect vertically

This commit is contained in:
iPel
2022-10-31 15:35:18 +08:00
committed by siguangli
parent 90aa3f6084
commit b18bb8167d
@@ -119,7 +119,6 @@ public class TextDrawable extends Drawable {
float dy = mTopPadding + borderWidth;
switch (mLayout.getAlignment()) {
case ALIGN_CENTER:
dy = (height - mLayout.getHeight()) / 2.0f;
dx = (width - mLayout.getWidth()) / 2.0f;
canvas.translate(dx, dy);
break;