We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ce0630 commit 4276ad6Copy full SHA for 4276ad6
plugin/platforms/android/java/com/nativescript/label/NSLabel.java
@@ -196,7 +196,7 @@ public void setLineHeight(int value) {
196
@Override
197
public void setTypeface(Typeface value) {
198
super.setTypeface(value);
199
- if (Build.VERSION.SDK_INT < 28 && lineHeight >= 0) {
+ if (Build.VERSION.SDK_INT < 28 && lineHeight > 0) {
200
float fontHeight = getPaint().getFontMetrics(null);
201
setLineSpacing(lineHeight - fontHeight, 1.0f);
202
}
0 commit comments