@syncfusion/ej2-image-editor 20.4.48 → 20.4.49

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.
@@ -6429,7 +6429,8 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
6429
6429
  ImageEditor.prototype.adjustToScreen = function () {
6430
6430
  // eslint-disable-next-line @typescript-eslint/no-this-alias
6431
6431
  var proxy = this;
6432
- if (!this.element.querySelector('#' + this.element.id + '_contextualToolbar').parentElement.classList.contains('e-hide') ||
6432
+ if ((!isNullOrUndefined(this.element.querySelector('#' + this.element.id + '_contextualToolbar')) &&
6433
+ !this.element.querySelector('#' + this.element.id + '_contextualToolbar').parentElement.classList.contains('e-hide')) ||
6433
6434
  (!isNullOrUndefined(this.element.querySelector('#' + this.element.id + '_headWrapper'))
6434
6435
  && !this.element.querySelector('#' + this.element.id + '_headWrapper').parentElement.classList.contains('e-hide'))) {
6435
6436
  this.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');