File tree 1 file changed +2
-2
lines changed
tns-core-modules/ui/image
1 file changed +2
-2
lines 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
You can’t perform that action at this time.
0 commit comments