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 {
39
39
} from '@nativescript/core' ;
40
40
import { secureProperty } from '@nativescript/core/ui/text-field' ;
41
41
import { TextFieldBase } from './textfield.common' ;
42
- import { Utils } from '@nativescript/core' ;
43
42
44
43
let LayoutInflater : typeof android . view . LayoutInflater ;
45
44
let FrameLayoutLayoutParams : typeof android . widget . FrameLayout . LayoutParams ;
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import {
32
32
placeholderColorProperty
33
33
} from '@nativescript/core' ;
34
34
import { textProperty } from '@nativescript/core/ui/text-base' ;
35
- import { Utils } from '@nativescript/core' ;
36
35
import { TextFieldBase } from './textfield.common' ;
37
36
38
37
@NativeClass
@@ -181,8 +180,8 @@ export class TextField extends TextFieldBase {
181
180
}
182
181
private mCanAutoSize = false ;
183
182
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 ;
186
185
super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ;
187
186
}
188
187
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ import {
38
38
} from '@nativescript/core' ;
39
39
import { textProperty } from '@nativescript/core/ui/text-base' ;
40
40
import { TextFieldBase } from './textfield.common' ;
41
- import { Utils } from '@nativescript/core' ;
42
41
43
42
@NativeClass
44
43
class MDCFilledTextFieldImpl extends MDCFilledTextField {
@@ -185,8 +184,8 @@ export class TextField extends TextFieldBase {
185
184
186
185
private mCanAutoSize = false ;
187
186
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 ;
190
189
super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ;
191
190
}
192
191
You can’t perform that action at this time.
0 commit comments