From 1b9610b4dd075367aa2072e81ec9060da2ba0bbf Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Fri, 20 Oct 2017 08:33:08 +0300 Subject: [PATCH] The original issue described here: https://github.com/NativeScript/NativeScript/issues/4804 is fixed in 3.2 but there is another bug which doesn't render borderRadius on Image element. (#4963) --- tns-core-modules/ui/core/view/view.ios.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tns-core-modules/ui/core/view/view.ios.ts b/tns-core-modules/ui/core/view/view.ios.ts index ee84ee907..7b29b8833 100644 --- a/tns-core-modules/ui/core/view/view.ios.ts +++ b/tns-core-modules/ui/core/view/view.ios.ts @@ -227,19 +227,21 @@ export class View extends ViewCommon { } private _onSizeChanged(): void { - let nativeView = this.nativeViewProtected; + const nativeView = this.nativeViewProtected; if (!nativeView) { return; } - let background = this.style.backgroundInternal; - const backgroundDependsOnSize = background.image || !background.hasUniformBorder(); + const background = this.style.backgroundInternal; + const backgroundDependsOnSize = background.image + || !background.hasUniformBorder() + || background.hasBorderRadius(); if (this._nativeBackgroundState === "invalid" || (this._nativeBackgroundState === "drawn" && backgroundDependsOnSize)) { this._redrawNativeBackground(background); } - let clipPath = this.style.clipPath; + const clipPath = this.style.clipPath; if (clipPath !== "" && this[clipPathProperty.setNative]) { this[clipPathProperty.setNative](clipPath); }