From 402a7bba2ee9435134d6697dbe5639bd096597f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20JEAN?= Date: Tue, 1 Mar 2022 22:22:36 +0100 Subject: [PATCH] fix(ios): do not redraw if background image is 'none' (#9800) --- packages/core/ui/core/view/index.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/ui/core/view/index.ios.ts b/packages/core/ui/core/view/index.ios.ts index 784b52f5e..dfc05b561 100644 --- a/packages/core/ui/core/view/index.ios.ts +++ b/packages/core/ui/core/view/index.ios.ts @@ -350,7 +350,7 @@ export class View extends ViewCommon implements ViewDefinition { } const background = this.style.backgroundInternal; - const backgroundDependsOnSize = background.image || !background.hasUniformBorder() || background.hasBorderRadius(); + const backgroundDependsOnSize = (background.image && background.image !== 'none') || !background.hasUniformBorder() || background.hasBorderRadius(); if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) { this._redrawNativeBackground(background);