mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Use density for clip-path calculations
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import { View } from "./background-common";
|
import { View } from "./background-common";
|
||||||
import { isNullOrUndefined, isFunction, getClass } from "utils/types";
|
import { isNullOrUndefined, isFunction, getClass } from "utils/types";
|
||||||
import { CacheLayerType } from "utils/utils";
|
import { CacheLayerType, layout } from "utils/utils";
|
||||||
import { parse } from "css-value";
|
import { parse } from "css-value";
|
||||||
|
|
||||||
export * from "./background-common"
|
export * from "./background-common"
|
||||||
@ -57,7 +57,7 @@ export module ad {
|
|||||||
_defaultBackgrounds.set(viewClass, nativeView.getBackground());
|
_defaultBackgrounds.set(viewClass, nativeView.getBackground());
|
||||||
}
|
}
|
||||||
|
|
||||||
backgroundDrawable = new org.nativescript.widgets.BorderDrawable(1, view.toString());
|
backgroundDrawable = new org.nativescript.widgets.BorderDrawable(layout.getDisplayDensity(), view.toString());
|
||||||
refreshBorderDrawable(view, <org.nativescript.widgets.BorderDrawable>backgroundDrawable);
|
refreshBorderDrawable(view, <org.nativescript.widgets.BorderDrawable>backgroundDrawable);
|
||||||
|
|
||||||
if (getSDK() >= 16) {
|
if (getSDK() >= 16) {
|
||||||
|
Reference in New Issue
Block a user