@worktile/theia 20.1.0-next.5 → 20.1.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14356,6 +14356,9 @@ class TheImage extends TheBaseElement {
|
|
|
14356
14356
|
}
|
|
14357
14357
|
}
|
|
14358
14358
|
ngOnDestroy() {
|
|
14359
|
+
if (this.imageLoadedCacheHeightTimer) {
|
|
14360
|
+
clearTimeout(this.imageLoadedCacheHeightTimer);
|
|
14361
|
+
}
|
|
14359
14362
|
this.uploadingSubscription.unsubscribe();
|
|
14360
14363
|
this.theContextService.removeUploadFile(this.fileItem);
|
|
14361
14364
|
if (this.uploading) {
|
|
@@ -14626,7 +14629,7 @@ class TheImage extends TheBaseElement {
|
|
|
14626
14629
|
const img = event.target;
|
|
14627
14630
|
this.naturalWidth = img.naturalWidth;
|
|
14628
14631
|
this.naturalHeight = img.naturalHeight;
|
|
14629
|
-
setTimeout(() => {
|
|
14632
|
+
this.imageLoadedCacheHeightTimer = setTimeout(() => {
|
|
14630
14633
|
this.cacheImageHeight(this.getRealHeight());
|
|
14631
14634
|
}, 0);
|
|
14632
14635
|
}
|