@worktile/theia 20.1.0-next.5 → 20.1.0-next.7
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.
|
@@ -3906,9 +3906,6 @@ const withTheia = (editor, plugins = []) => {
|
|
|
3906
3906
|
e.isContainer = (value) => false;
|
|
3907
3907
|
e.globalMousedown = (event) => null;
|
|
3908
3908
|
e.mousedown = (event) => { };
|
|
3909
|
-
e.isVisible = (element) => {
|
|
3910
|
-
return true;
|
|
3911
|
-
};
|
|
3912
3909
|
e.extraElementOptions = [];
|
|
3913
3910
|
e.disabled = false;
|
|
3914
3911
|
e.plugins = [];
|
|
@@ -14356,6 +14353,9 @@ class TheImage extends TheBaseElement {
|
|
|
14356
14353
|
}
|
|
14357
14354
|
}
|
|
14358
14355
|
ngOnDestroy() {
|
|
14356
|
+
if (this.imageLoadedCacheHeightTimer) {
|
|
14357
|
+
clearTimeout(this.imageLoadedCacheHeightTimer);
|
|
14358
|
+
}
|
|
14359
14359
|
this.uploadingSubscription.unsubscribe();
|
|
14360
14360
|
this.theContextService.removeUploadFile(this.fileItem);
|
|
14361
14361
|
if (this.uploading) {
|
|
@@ -14626,7 +14626,7 @@ class TheImage extends TheBaseElement {
|
|
|
14626
14626
|
const img = event.target;
|
|
14627
14627
|
this.naturalWidth = img.naturalWidth;
|
|
14628
14628
|
this.naturalHeight = img.naturalHeight;
|
|
14629
|
-
setTimeout(() => {
|
|
14629
|
+
this.imageLoadedCacheHeightTimer = setTimeout(() => {
|
|
14630
14630
|
this.cacheImageHeight(this.getRealHeight());
|
|
14631
14631
|
}, 0);
|
|
14632
14632
|
}
|