Skip to content

Commit 10987cf

Browse files
committed
chore N 8.4 changes
1 parent 368b799 commit 10987cf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/textfield/textfield.android.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
} from '@nativescript/core';
4040
import { secureProperty } from '@nativescript/core/ui/text-field';
4141
import { TextFieldBase } from './textfield.common';
42-
import { layout } from '@nativescript/core/utils/layout-helper';
42+
import { Utils } from '@nativescript/core';
4343

4444
let LayoutInflater: typeof android.view.LayoutInflater;
4545
let 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) {

src/textfield/textfield.ios.old.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
placeholderColorProperty
3333
} from '@nativescript/core';
3434
import { textProperty } from '@nativescript/core/ui/text-base';
35-
import { layout } from '@nativescript/core/utils/layout-helper';
35+
import { Utils } from '@nativescript/core';
3636
import { TextFieldBase } from './textfield.common';
3737

3838
@NativeClass

src/textfield/textfield.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
} from '@nativescript/core';
3939
import { textProperty } from '@nativescript/core/ui/text-base';
4040
import { TextFieldBase } from './textfield.common';
41-
import { layout } from '@nativescript/core/utils/layout-helper';
41+
import { Utils } from '@nativescript/core';
4242

4343
@NativeClass
4444
class MDCFilledTextFieldImpl extends MDCFilledTextField {

0 commit comments

Comments
 (0)