Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 120a867

Browse files
authored
[Android] Textarea supports LineHeight
1 parent 4ea510d commit 120a867

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/sdk/src/main/java/org/apache/weex/ui/component/AbstractEditComponent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,10 @@ protected void updateStyleAndAttrs() {
166166
}
167167

168168
int lineHeight = WXStyle.getLineHeight(getStyles(),getViewPortWidth());
169-
if (lineHeight != UNSET)
169+
if (lineHeight != UNSET){
170170
mLineHeight = lineHeight;
171+
getHostView().setLineHeight(mLineHeight);
172+
}
171173

172174
if (fontSize != UNSET)
173175
mPaint.setTextSize(fontSize);

0 commit comments

Comments
 (0)