Pre Merge pull request !218 from zgf/3.x
This commit is contained in:
commit
db473c29b9
|
@ -63,7 +63,12 @@ export struct ImageKnifeComponent {
|
||||||
}
|
}
|
||||||
this.listener.off("layout", this.onLayoutComplete)
|
this.listener.off("layout", this.onLayoutComplete)
|
||||||
}
|
}
|
||||||
|
aboutToRecycle(){
|
||||||
|
if (this.request !== undefined) {
|
||||||
|
this.request.requestState = ImageKnifeRequestState.DESTROY
|
||||||
|
this.request = undefined
|
||||||
|
}
|
||||||
|
}
|
||||||
build() {
|
build() {
|
||||||
Image(this.pixelMap)
|
Image(this.pixelMap)
|
||||||
.objectFit(this.ImageKnifeOption.objectFit === undefined ? ImageFit.Contain : this.ImageKnifeOption.objectFit)
|
.objectFit(this.ImageKnifeOption.objectFit === undefined ? ImageFit.Contain : this.ImageKnifeOption.objectFit)
|
||||||
|
|
Loading…
Reference in New Issue