@@ -39,7 +39,7 @@ import {
39
39
} from '@nativescript/core' ;
40
40
import { secureProperty } from '@nativescript/core/ui/text-field' ;
41
41
import { TextFieldBase } from './textfield.common' ;
42
- import { layout } from '@nativescript/core/utils/layout-helper ' ;
42
+ import { Utils } from '@nativescript/core' ;
43
43
44
44
let LayoutInflater : typeof android . view . LayoutInflater ;
45
45
let FrameLayoutLayoutParams : typeof android . widget . FrameLayout . LayoutParams ;
@@ -334,25 +334,25 @@ export class TextField extends TextFieldBase {
334
334
[ paddingTopProperty . setNative ] ( value : CoreTypes . LengthType ) {
335
335
org . nativescript . widgets . ViewHelper . setPaddingTop (
336
336
this . nativeTextViewProtected ,
337
- layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderTopWidth , 0 ) )
337
+ Utils . layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderTopWidth , 0 ) )
338
338
) ;
339
339
}
340
340
[ paddingRightProperty . setNative ] ( value : CoreTypes . LengthType ) {
341
341
org . nativescript . widgets . ViewHelper . setPaddingRight (
342
342
this . nativeTextViewProtected ,
343
- layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderRightWidth , 0 ) )
343
+ Utils . layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderRightWidth , 0 ) )
344
344
) ;
345
345
}
346
346
[ paddingBottomProperty . setNative ] ( value : CoreTypes . LengthType ) {
347
347
org . nativescript . widgets . ViewHelper . setPaddingBottom (
348
348
this . nativeTextViewProtected ,
349
- layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderBottomWidth , 0 ) )
349
+ Utils . layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderBottomWidth , 0 ) )
350
350
) ;
351
351
}
352
352
[ paddingLeftProperty . setNative ] ( value : CoreTypes . LengthType ) {
353
353
org . nativescript . widgets . ViewHelper . setPaddingLeft (
354
354
this . nativeTextViewProtected ,
355
- layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderLeftWidth , 0 ) )
355
+ Utils . layout . toDeviceIndependentPixels ( Length . toDevicePixels ( value , 0 ) + Length . toDevicePixels ( this . style . borderLeftWidth , 0 ) )
356
356
) ;
357
357
}
358
358
[ textAlignmentProperty . setNative ] ( value : CoreTypes . TextAlignmentType ) {
0 commit comments