File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import {
3939} from '@nativescript/core' ;
4040import { secureProperty } from '@nativescript/core/ui/text-field' ;
4141import { TextFieldBase } from './textfield.common' ;
42- import { Utils } from '@nativescript/core' ;
4342
4443let LayoutInflater : typeof android . view . LayoutInflater ;
4544let FrameLayoutLayoutParams : typeof android . widget . FrameLayout . LayoutParams ;
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import {
3232 placeholderColorProperty
3333} from '@nativescript/core' ;
3434import { textProperty } from '@nativescript/core/ui/text-base' ;
35- import { Utils } from '@nativescript/core' ;
3635import { TextFieldBase } from './textfield.common' ;
3736
3837@NativeClass
@@ -181,8 +180,8 @@ export class TextField extends TextFieldBase {
181180 }
182181 private mCanAutoSize = false ;
183182 public onMeasure ( widthMeasureSpec : number , heightMeasureSpec : number ) : void {
184- const widthMode = layout . getMeasureSpecMode ( widthMeasureSpec ) ;
185- this . mCanAutoSize = widthMode !== layout . EXACTLY ;
183+ const widthMode = Utils . layout . getMeasureSpecMode ( widthMeasureSpec ) ;
184+ this . mCanAutoSize = widthMode !== Utils . layout . EXACTLY ;
186185 super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ;
187186 }
188187
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ import {
3838} from '@nativescript/core' ;
3939import { textProperty } from '@nativescript/core/ui/text-base' ;
4040import { TextFieldBase } from './textfield.common' ;
41- import { Utils } from '@nativescript/core' ;
4241
4342@NativeClass
4443class MDCFilledTextFieldImpl extends MDCFilledTextField {
@@ -185,8 +184,8 @@ export class TextField extends TextFieldBase {
185184
186185 private mCanAutoSize = false ;
187186 public onMeasure ( widthMeasureSpec : number , heightMeasureSpec : number ) : void {
188- const widthMode = layout . getMeasureSpecMode ( widthMeasureSpec ) ;
189- this . mCanAutoSize = widthMode !== layout . EXACTLY ;
187+ const widthMode = Utils . layout . getMeasureSpecMode ( widthMeasureSpec ) ;
188+ this . mCanAutoSize = widthMode !== Utils . layout . EXACTLY ;
190189 super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ;
191190 }
192191
You can’t perform that action at this time.
0 commit comments