primeng 15.4.25-lts → 15.4.26-lts

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.
@@ -1878,22 +1878,29 @@ class Calendar {
1878
1878
  }
1879
1879
  }
1880
1880
  alignOverlay() {
1881
+ var _a, _b, _c, _d;
1881
1882
  if (this.touchUI) {
1882
1883
  this.enableModality(this.overlay);
1883
1884
  }
1884
1885
  else if (this.overlay) {
1885
1886
  if (this.appendTo) {
1886
1887
  if (this.view === 'date') {
1887
- this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';
1888
- this.overlay.style.minWidth = DomHandler.getOuterWidth(this.inputfieldViewChild.nativeElement) + 'px';
1888
+ if (!this.overlay.style.width) {
1889
+ this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';
1890
+ }
1891
+ if (!this.overlay.style.minWidth) {
1892
+ this.overlay.style.minWidth = DomHandler.getOuterWidth((_a = this.inputfieldViewChild) === null || _a === void 0 ? void 0 : _a.nativeElement) + 'px';
1893
+ }
1889
1894
  }
1890
1895
  else {
1891
- this.overlay.style.width = DomHandler.getOuterWidth(this.inputfieldViewChild.nativeElement) + 'px';
1896
+ if (!this.overlay.style.width) {
1897
+ this.overlay.style.width = DomHandler.getOuterWidth((_b = this.inputfieldViewChild) === null || _b === void 0 ? void 0 : _b.nativeElement) + 'px';
1898
+ }
1892
1899
  }
1893
- DomHandler.absolutePosition(this.overlay, this.inputfieldViewChild.nativeElement);
1900
+ DomHandler.absolutePosition(this.overlay, (_c = this.inputfieldViewChild) === null || _c === void 0 ? void 0 : _c.nativeElement);
1894
1901
  }
1895
1902
  else {
1896
- DomHandler.relativePosition(this.overlay, this.inputfieldViewChild.nativeElement);
1903
+ DomHandler.relativePosition(this.overlay, (_d = this.inputfieldViewChild) === null || _d === void 0 ? void 0 : _d.nativeElement);
1897
1904
  }
1898
1905
  }
1899
1906
  }