@@ -19,7 +19,7 @@ import {
19
19
} from '@nativescript/core/ui/text-base' ;
20
20
import { maxLinesProperty } from '@nativescript/core/ui/text-base/text-base-common' ;
21
21
import { isNullOrUndefined , isString } from '@nativescript/core/utils/types' ;
22
- import { layout } from '@nativescript/core/utils/layout-helper ' ;
22
+ import { Utils } from '@nativescript/core' ;
23
23
import { TextShadow } from './label' ;
24
24
import {
25
25
LabelBase ,
@@ -241,10 +241,10 @@ export class Label extends LabelBase {
241
241
242
242
updateTextContainerInset ( applyVerticalTextAlignment = true ) {
243
243
const tv = this . nativeTextViewProtected ;
244
- const top = layout . toDeviceIndependentPixels ( this . effectivePaddingTop + this . effectiveBorderTopWidth ) ;
245
- const right = layout . toDeviceIndependentPixels ( this . effectivePaddingRight + this . effectiveBorderRightWidth ) ;
246
- const bottom = layout . toDeviceIndependentPixels ( this . effectivePaddingBottom + this . effectiveBorderBottomWidth ) ;
247
- const left = layout . toDeviceIndependentPixels ( this . effectivePaddingLeft + this . effectiveBorderLeftWidth ) ;
244
+ const top = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingTop + this . effectiveBorderTopWidth ) ;
245
+ const right = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingRight + this . effectiveBorderRightWidth ) ;
246
+ const bottom = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingBottom + this . effectiveBorderBottomWidth ) ;
247
+ const left = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingLeft + this . effectiveBorderLeftWidth ) ;
248
248
if (
249
249
! applyVerticalTextAlignment ||
250
250
! this . verticalTextAlignment ||
@@ -323,8 +323,8 @@ export class Label extends LabelBase {
323
323
if ( ! finiteWidth || ! finiteHeight ) {
324
324
resetFont = this . updateAutoFontSize ( {
325
325
textView : nativeView ,
326
- width : layout . toDeviceIndependentPixels ( width ) ,
327
- height : layout . toDeviceIndependentPixels ( height ) ,
326
+ width : Utils . layout . toDeviceIndependentPixels ( width ) ,
327
+ height : Utils . layout . toDeviceIndependentPixels ( height ) ,
328
328
onlyMeasure : true
329
329
} ) ;
330
330
}
0 commit comments