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.
@@ -1883,16 +1883,22 @@ class Calendar {
1883
1883
  else if (this.overlay) {
1884
1884
  if (this.appendTo) {
1885
1885
  if (this.view === 'date') {
1886
- this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';
1887
- this.overlay.style.minWidth = DomHandler.getOuterWidth(this.inputfieldViewChild.nativeElement) + 'px';
1886
+ if (!this.overlay.style.width) {
1887
+ this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';
1888
+ }
1889
+ if (!this.overlay.style.minWidth) {
1890
+ this.overlay.style.minWidth = DomHandler.getOuterWidth(this.inputfieldViewChild?.nativeElement) + 'px';
1891
+ }
1888
1892
  }
1889
1893
  else {
1890
- this.overlay.style.width = DomHandler.getOuterWidth(this.inputfieldViewChild.nativeElement) + 'px';
1894
+ if (!this.overlay.style.width) {
1895
+ this.overlay.style.width = DomHandler.getOuterWidth(this.inputfieldViewChild?.nativeElement) + 'px';
1896
+ }
1891
1897
  }
1892
- DomHandler.absolutePosition(this.overlay, this.inputfieldViewChild.nativeElement);
1898
+ DomHandler.absolutePosition(this.overlay, this.inputfieldViewChild?.nativeElement);
1893
1899
  }
1894
1900
  else {
1895
- DomHandler.relativePosition(this.overlay, this.inputfieldViewChild.nativeElement);
1901
+ DomHandler.relativePosition(this.overlay, this.inputfieldViewChild?.nativeElement);
1896
1902
  }
1897
1903
  }
1898
1904
  }