| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent af934cc commit b280efe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ export class Image extends ImageBase { | |||
| 25 | 25 | if (value && this.nativeViewProtected.image && !this._templateImageWasCreated) { | |
| 26 | 26 | this.nativeViewProtected.image = this.nativeViewProtected.image.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate); | |
| 27 | 27 | this._templateImageWasCreated = true; | |
| 28 | - } else if (this.nativeViewProtected.image && this._templateImageWasCreated) { | ||
| 28 | + } else if (!value && this.nativeViewProtected.image && this._templateImageWasCreated) { | ||
| 29 | 29 | this._templateImageWasCreated = false; | |
| 30 | 30 | this.nativeViewProtected.image = this.nativeViewProtected.image.imageWithRenderingMode(UIImageRenderingMode.Automatic); | |
| 31 | 31 | } | |
@@ -48,7 +48,7 @@ export class Image extends ImageBase { | |||
| 48 | 48 | } | |
| 49 | 49 | ||
| 50 | 50 | public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void { | |
| 51 | - // We don't call super because we measure native view with specific size. | ||
| 51 | + // We don't call super because we measure native view with specific size. | ||
| 52 | 52 | const width = layout.getMeasureSpecSize(widthMeasureSpec); | |
| 53 | 53 | const widthMode = layout.getMeasureSpecMode(widthMeasureSpec); | |
| 54 | 54 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments