@klippa/ngx-enhancy-forms 14.11.4 → 14.11.6
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.
- package/esm2020/lib/elements/select/select.component.mjs +5 -2
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +4 -1
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +4 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -966,6 +966,9 @@ class SelectComponent extends ValueAccessorBase {
|
|
|
966
966
|
if (isValueSet(changes.options)) {
|
|
967
967
|
this.lastItemIndexReached = -1;
|
|
968
968
|
this.setWidthBasedOnOptionsWidths();
|
|
969
|
+
if (!this.truncateOptions) {
|
|
970
|
+
this.setFixedDropdownPanelPosition();
|
|
971
|
+
}
|
|
969
972
|
}
|
|
970
973
|
this.dropdownPositionToUse = this.dropdownPosition;
|
|
971
974
|
}
|
|
@@ -1082,7 +1085,7 @@ class SelectComponent extends ValueAccessorBase {
|
|
|
1082
1085
|
}
|
|
1083
1086
|
determineDropdownPosition() {
|
|
1084
1087
|
const bottomSpace = window.innerHeight - this.elRef.nativeElement.getBoundingClientRect().top;
|
|
1085
|
-
if (bottomSpace >=
|
|
1088
|
+
if (bottomSpace >= 330) {
|
|
1086
1089
|
this.dropdownPositionToUse = 'bottom';
|
|
1087
1090
|
}
|
|
1088
1091
|
else {
|