mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): remove extra font padding by default (#10771)
This commit is contained in:
@@ -186,6 +186,11 @@ export class TextBase extends TextBaseCommon {
|
||||
super.initNativeView();
|
||||
initializeTextTransformation();
|
||||
const nativeView = this.nativeTextViewProtected;
|
||||
|
||||
// Fix for custom font over-height issue on Android
|
||||
// Disable font padding to prevent extra spacing around text
|
||||
nativeView.setIncludeFontPadding(false);
|
||||
|
||||
this._defaultTransformationMethod = nativeView.getTransformationMethod();
|
||||
this._defaultMovementMethod = nativeView.getMovementMethod();
|
||||
this._minHeight = nativeView.getMinHeight();
|
||||
|
||||
Reference in New Issue
Block a user