mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 14:10:47 +08:00
fix(android): textAlign should not affect vertically
This commit is contained in:
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user