Skip to content

Commit 1b9610b

Browse files
author
Hristo Hristov
authored
The original issue described here: NativeScript#4804 is fixed in 3.2 but there is another bug which doesn't render borderRadius on Image element. (NativeScript#4963)
1 parent 188c1f2 commit 1b9610b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tns-core-modules/ui/core/view/view.ios.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,21 @@ export class View extends ViewCommon {
227227
}
228228

229229
private _onSizeChanged(): void {
230-
let nativeView = this.nativeViewProtected;
230+
const nativeView = this.nativeViewProtected;
231231
if (!nativeView) {
232232
return;
233233
}
234234

235-
let background = this.style.backgroundInternal;
236-
const backgroundDependsOnSize = background.image || !background.hasUniformBorder();
235+
const background = this.style.backgroundInternal;
236+
const backgroundDependsOnSize = background.image
237+
|| !background.hasUniformBorder()
238+
|| background.hasBorderRadius();
237239

238240
if (this._nativeBackgroundState === "invalid" || (this._nativeBackgroundState === "drawn" && backgroundDependsOnSize)) {
239241
this._redrawNativeBackground(background);
240242
}
241243

242-
let clipPath = this.style.clipPath;
244+
const clipPath = this.style.clipPath;
243245
if (clipPath !== "" && this[clipPathProperty.setNative]) {
244246
this[clipPathProperty.setNative](clipPath);
245247
}

0 commit comments

Comments
 (0)