@acorex/components 16.19.28 → 16.19.29
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.
|
@@ -3933,7 +3933,7 @@ class AXDropdownComponent extends AXBaseDropdownComponent {
|
|
|
3933
3933
|
? this.dropdownEL.nativeElement.offsetWidth
|
|
3934
3934
|
: 300}px`;
|
|
3935
3935
|
}
|
|
3936
|
-
},
|
|
3936
|
+
}, 50);
|
|
3937
3937
|
}
|
|
3938
3938
|
ngOnDestroy() {
|
|
3939
3939
|
this.overlayRef?.detach();
|
|
@@ -3960,6 +3960,11 @@ class AXDropdownComponent extends AXBaseDropdownComponent {
|
|
|
3960
3960
|
if (this.isOpen) {
|
|
3961
3961
|
return;
|
|
3962
3962
|
}
|
|
3963
|
+
if (this.fitParent == true) {
|
|
3964
|
+
this.dropdownWidth = `${this.dropdownEL.nativeElement.offsetWidth > 100
|
|
3965
|
+
? this.dropdownEL.nativeElement.offsetWidth
|
|
3966
|
+
: 300}px`;
|
|
3967
|
+
}
|
|
3963
3968
|
this.ensureOverlayCreated();
|
|
3964
3969
|
this.overlayRef.attach(this.templatePortal);
|
|
3965
3970
|
this.dropdownToggle.emit({ mode: 'open' });
|