Use density for clip-path calculations

This commit is contained in:
vakrilov
2017-02-21 14:14:32 +02:00
parent 4bfc8a90c2
commit b34802d7fc

View File

@ -1,6 +1,6 @@
import { View } from "./background-common";
import { isNullOrUndefined, isFunction, getClass } from "utils/types";
import { CacheLayerType } from "utils/utils";
import { CacheLayerType, layout } from "utils/utils";
import { parse } from "css-value";
export * from "./background-common"
@ -57,7 +57,7 @@ export module ad {
_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);
if (getSDK() >= 16) {