Skip to content

Commit 39db0a2

Browse files
committed
chore: typings
1 parent 4b348d4 commit 39db0a2

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/button/button.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { dynamicElevationOffsetProperty, elevationProperty, getRippleColor, ripp
22
import {
33
Background,
44
Color,
5+
CoreTypes,
56
Font,
67
ImageSource,
78
Screen,
@@ -12,8 +13,7 @@ import {
1213
borderTopLeftRadiusProperty,
1314
borderTopRightRadiusProperty,
1415
colorProperty,
15-
fontInternalProperty,
16-
CoreTypes,
16+
fontInternalProperty
1717
} from '@nativescript/core';
1818
import { textTransformProperty } from '@nativescript/core/ui/text-base';
1919
import { ButtonBase, imageSourceProperty, srcProperty } from './button-common';

src/textfield/textfield.android.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
import {
1919
Background,
2020
Color,
21+
CoreTypes,
2122
Font,
2223
Length,
2324
Utils,
@@ -31,9 +32,7 @@ import {
3132
paddingTopProperty,
3233
placeholderColorProperty,
3334
profile,
34-
textAlignmentProperty,
35-
LengthType,
36-
CoreTypes
35+
textAlignmentProperty
3736
} from '@nativescript/core';
3837
import { secureProperty } from '@nativescript/core/ui/text-field';
3938
import { TextFieldBase } from './textfield.common';
@@ -279,6 +278,9 @@ export class TextField extends TextFieldBase {
279278
if (value.borderTopColor) {
280279
this.nativeViewProtected.setBoxStrokeColor(value.borderTopColor.android);
281280
}
281+
if (value.borderTopWidth) {
282+
this.nativeViewProtected.setBoxStrokeColor(value.borderTopColor.android);
283+
}
282284
break;
283285
}
284286
}
@@ -290,16 +292,16 @@ export class TextField extends TextFieldBase {
290292
this.nativeTextViewProtected.setTypeface(value instanceof Font ? value.getAndroidTypeface() : value);
291293
}
292294
}
293-
[paddingTopProperty.setNative](value: LengthType) {
295+
[paddingTopProperty.setNative](value: CoreTypes.LengthType) {
294296
org.nativescript.widgets.ViewHelper.setPaddingTop(this.nativeViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderTopWidth, 0));
295297
}
296-
[paddingRightProperty.setNative](value: LengthType) {
298+
[paddingRightProperty.setNative](value: CoreTypes.LengthType) {
297299
org.nativescript.widgets.ViewHelper.setPaddingRight(this.nativeViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderRightWidth, 0));
298300
}
299-
[paddingBottomProperty.setNative](value: LengthType) {
301+
[paddingBottomProperty.setNative](value: CoreTypes.LengthType) {
300302
org.nativescript.widgets.ViewHelper.setPaddingBottom(this.nativeViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderBottomWidth, 0));
301303
}
302-
[paddingLeftProperty.setNative](value: LengthType) {
304+
[paddingLeftProperty.setNative](value: CoreTypes.LengthType) {
303305
org.nativescript.widgets.ViewHelper.setPaddingLeft(this.nativeViewProtected, Length.toDevicePixels(value, 0) + Length.toDevicePixels(this.style.borderLeftWidth, 0));
304306
}
305307
[textAlignmentProperty.setNative](value: CoreTypes.TextAlignmentType) {

0 commit comments

Comments
 (0)