@@ -39,7 +39,7 @@ import {
3939} from '@nativescript/core' ;
4040import { secureProperty } from '@nativescript/core/ui/text-field' ;
4141import { TextFieldBase } from './textfield.common' ;
42- import { layout } from '@nativescript/core/utils/layout-helper ' ;
42+ import { Utils } from '@nativescript/core' ;
4343
4444let LayoutInflater : typeof android . view . LayoutInflater ;
4545let FrameLayoutLayoutParams : typeof android . widget . FrameLayout . LayoutParams ;
@@ -334,25 +334,25 @@ export class TextField extends TextFieldBase {
334334 [ paddingTopProperty . setNative ] ( value : CoreTypes . LengthType ) {
335335 org . nativescript . widgets . ViewHelper . setPaddingTop (
336336 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 ) )
338338 ) ;
339339 }
340340 [ paddingRightProperty . setNative ] ( value : CoreTypes . LengthType ) {
341341 org . nativescript . widgets . ViewHelper . setPaddingRight (
342342 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 ) )
344344 ) ;
345345 }
346346 [ paddingBottomProperty . setNative ] ( value : CoreTypes . LengthType ) {
347347 org . nativescript . widgets . ViewHelper . setPaddingBottom (
348348 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 ) )
350350 ) ;
351351 }
352352 [ paddingLeftProperty . setNative ] ( value : CoreTypes . LengthType ) {
353353 org . nativescript . widgets . ViewHelper . setPaddingLeft (
354354 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 ) )
356356 ) ;
357357 }
358358 [ textAlignmentProperty . setNative ] ( value : CoreTypes . TextAlignmentType ) {
0 commit comments