mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
chore: update tslint rules (#7391)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import * as textViewModule from "tns-core-modules/ui/text-view";
|
||||
import * as textViewModule from "tns-core-modules/ui/text-view";
|
||||
import * as colorModule from "tns-core-modules/color";
|
||||
import * as utilsModule from "tns-core-modules/utils/utils";
|
||||
import * as enums from "tns-core-modules/ui/enums";
|
||||
@ -22,6 +22,7 @@ export function getNativeHint(textView: textViewModule.TextView): string {
|
||||
|
||||
export function getNativeFontSize(textView: textViewModule.TextView): number {
|
||||
var density = utilsModule.layout.getDisplayDensity();
|
||||
|
||||
return textView.android.getTextSize() / density;
|
||||
}
|
||||
|
||||
@ -35,7 +36,7 @@ export function getNativeBackgroundColor(textView: textViewModule.TextView): col
|
||||
return new colorModule.Color((<org.nativescript.widgets.BorderDrawable>bkg).getBackgroundColor());
|
||||
}
|
||||
else {
|
||||
return new colorModule.Color(bkg.backgroundColor)
|
||||
return new colorModule.Color(bkg.backgroundColor);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user