mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix(ios): do not redraw if background image is 'none' (#9800)
This commit is contained in:
@ -350,7 +350,7 @@ export class View extends ViewCommon implements ViewDefinition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const background = this.style.backgroundInternal;
|
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)) {
|
if (this._nativeBackgroundState === 'invalid' || (this._nativeBackgroundState === 'drawn' && backgroundDependsOnSize)) {
|
||||||
this._redrawNativeBackground(background);
|
this._redrawNativeBackground(background);
|
||||||
|
Reference in New Issue
Block a user