@@ -18,6 +18,7 @@ import {
1818import {
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' ;
3837import { secureProperty } from '@nativescript/core/ui/text-field' ;
3938import { 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