8000 fix(ios): do not redraw if background image is 'none' (#9800) · NativeScript/NativeScript@402a7bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 402a7bb

Browse files
authored
fix(ios): do not redraw if background image is 'none' (#9800)
1 parent 5550e69 commit 402a7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/ui/core/view/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class View extends ViewCommon implements ViewDefinition {
350350
}
351351

352352
const background = this.style.backgroundInternal;
353-
const backgroundDependsOnSize = background.image || !background.hasUniformBorder() || background.hasBorderRadius();
353+
const backgroundDependsOnSize = (background.image && background.image !== 'none') || !background.hasUniformBorder() || background.hasBorderRadius();
354354

355355
if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) {
356356
this._redrawNativeBackground(background);

0 commit comments

Comments
 (0)
0