@@ -18,6 +18,7 @@ import {
18
18
import {
19
19
Background ,
20
20
Color ,
21
+ CoreTypes ,
21
22
Font ,
22
23
Length ,
23
24
Utils ,
@@ -31,9 +32,7 @@ import {
31
32
paddingTopProperty ,
32
33
placeholderColorProperty ,
33
34
profile ,
34
- textAlignmentProperty ,
35
- LengthType ,
36
- CoreTypes
35
+ textAlignmentProperty
37
36
} from '@nativescript/core' ;
38
37
import { secureProperty } from '@nativescript/core/ui/text-field' ;
39
38
import { TextFieldBase } from './textfield.common' ;
@@ -279,6 +278,9 @@ export class TextField extends TextFieldBase {
279
278
if ( value . borderTopColor ) {
280
279
this . nativeViewProtected . setBoxStrokeColor ( value . borderTopColor . android ) ;
281
280
}
281
+ if ( value . borderTopWidth ) {
282
+ this . nativeViewProtected . setBoxStrokeColor ( value . borderTopColor . android ) ;
283
+ }
282
284
break ;
283
285
}
284
286
}
@@ -290,16 +292,16 @@ export class TextField extends TextFieldBase {
290
292
this . nativeTextViewProtected . setTypeface ( value instanceof Font ? value . getAndroidTypeface ( ) : value ) ;
291
293
}
292
294
}
293
- [ paddingTopProperty . setNative ] ( value : LengthType ) {
295
+ [ paddingTopProperty . setNative ] ( value : CoreTypes . LengthType ) {
294
296
org . nativescript . widgets . ViewHelper . setPaddingTop ( this . nativeViewProtected , Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderTopWidth , 0 ) ) ;
295
297
}
296
- [ paddingRightProperty . setNative ] ( value : LengthType ) {
298
+ [ paddingRightProperty . setNative ] ( value : CoreTypes . LengthType ) {
297
299
org . nativescript . widgets . ViewHelper . setPaddingRight ( this . nativeViewProtected , Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderRightWidth , 0 ) ) ;
298
300
}
299
- [ paddingBottomProperty . setNative ] ( value : LengthType ) {
301
+ [ paddingBottomProperty . setNative ] ( value : CoreTypes . LengthType ) {
300
302
org . nativescript . widgets . ViewHelper . setPaddingBottom ( this . nativeViewProtected , Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderBottomWidth , 0 ) ) ;
301
303
}
302
- [ paddingLeftProperty . setNative ] ( value : LengthType ) {
304
+ [ paddingLeftProperty . setNative ] ( value : CoreTypes . LengthType ) {
303
305
org . nativescript . widgets . ViewHelper . setPaddingLeft ( this . nativeViewProtected , Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderLeftWidth , 0 ) ) ;
304
306
}
305
307
[ textAlignmentProperty . setNative ] ( value : CoreTypes . TextAlignmentType ) {
0 commit comments