mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
chore: TypeScript 5.8, nx migrate, dep updates - bundler resolution
This commit is contained in:
@ -458,6 +458,7 @@ export class TextBase extends TextBaseCommon {
|
||||
[paddingTopProperty.getDefault](): CoreTypes.LengthType {
|
||||
return { value: this._defaultPaddingTop, unit: 'px' };
|
||||
}
|
||||
// @ts-expect-error
|
||||
[paddingTopProperty.setNative](value: CoreTypes.LengthType) {
|
||||
org.nativescript.widgets.ViewHelper.setPaddingTop(this.nativeTextViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderTopWidth, 0));
|
||||
}
|
||||
@ -465,6 +466,7 @@ export class TextBase extends TextBaseCommon {
|
||||
[paddingRightProperty.getDefault](): CoreTypes.LengthType {
|
||||
return { value: this._defaultPaddingRight, unit: 'px' };
|
||||
}
|
||||
// @ts-expect-error
|
||||
[paddingRightProperty.setNative](value: CoreTypes.LengthType) {
|
||||
org.nativescript.widgets.ViewHelper.setPaddingRight(this.nativeTextViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderRightWidth, 0));
|
||||
}
|
||||
@ -472,6 +474,7 @@ export class TextBase extends TextBaseCommon {
|
||||
[paddingBottomProperty.getDefault](): CoreTypes.LengthType {
|
||||
return { value: this._defaultPaddingBottom, unit: 'px' };
|
||||
}
|
||||
// @ts-expect-error
|
||||
[paddingBottomProperty.setNative](value: CoreTypes.LengthType) {
|
||||
org.nativescript.widgets.ViewHelper.setPaddingBottom(this.nativeTextViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderBottomWidth, 0));
|
||||
}
|
||||
@ -479,6 +482,7 @@ export class TextBase extends TextBaseCommon {
|
||||
[paddingLeftProperty.getDefault](): CoreTypes.LengthType {
|
||||
return { value: this._defaultPaddingLeft, unit: 'px' };
|
||||
}
|
||||
// @ts-expect-error
|
||||
[paddingLeftProperty.setNative](value: CoreTypes.LengthType) {
|
||||
org.nativescript.widgets.ViewHelper.setPaddingLeft(this.nativeTextViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderLeftWidth, 0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user